Questions tagged [telerik-open-access]

Telerik's object-relational mapper is a powerful framework for mapping the objects in your object-oriented domain model to your relational database tables, views, and/or stored procedures. This mapping is done within Visual Studio and is independent from source code and database - it is a virtual layer, which can be used from within the programming language to access and manipulate data.

Telerik's object-relational mapper is a powerful framework for mapping the objects in your object-oriented domain model to your relational database tables, views, and/or stored procedures. This mapping is done within Visual Studio and is independent from source code and database - it is a virtual layer, which can be used from within the programming language to access and manipulate data.

138 questions
0
votes
1 answer

OpenAccessDomainService Executing OQL query is very slow

I have big problem with OQL query in OpenAccessDomainService. I have application with Silverlight client and RIA Web Service (OpenAccessDomainService), and I need to implement lazy loading approach. For example I created method getAnimalsLazy(string…
0
votes
1 answer

Using SQL instead of LINQ in Telerik Open Access

I'm using Telerik Open Access. I have two separate projects that have Open Access data and then a third project that has the bulk of my code. I've been working on a way to convert a simple (at least I thought it was) SQL query to LINQ so that I…
boilers222
  • 1,901
  • 7
  • 33
  • 71
0
votes
0 answers

Why can't I get the linq version of a SQL query to work in Telerik OpenAccess?

I'm using a MVC project with a Telerik Open Access data project. I haven't had any problems writing linq statements to query the data until now, but I just can't get the linq statement right. Can someone help me translate this SQL code to…
boilers222
  • 1,901
  • 7
  • 33
  • 71
0
votes
1 answer

difference between context.dispose() and context.cache.releaseall()

I am a bit confused and wanted to know technically what exactly happens when i call each of these command, also which is preferable over another. My scenario is in desktop application, where there is a LoginForm, in which: User Logs In by giving…
tango
  • 80
  • 2
  • 11
0
votes
0 answers

unable to make linq query : telerik open source

I have 1 parent and 2 child tables each containing flag, i wanted to bring all those records from respective tables if there flag = "t". i have written so far: ParentEntity obj = context.ParentEntity.Where(p => p.ID == 4).SingleOrDefault(); This…
tango
  • 80
  • 2
  • 11
0
votes
1 answer

context.savechanges impact - Telerik EF concept

i am encountering a scenario that is as follows. i have two tables named parent and child. Upon fetching data from database, i got 1 row against parent and 2 rows against child. At this stage if i ​create new child and add it to context and apply…
tango
  • 80
  • 2
  • 11
0
votes
1 answer

Many to many relationship - Get all objects linked to other one

I have two classes: public class User { public User() { this.Groups = new List(); } public long Id { get; set; } public string Name { get; set; } public IList Groups { get; set; } } and public class…
profou
  • 197
  • 1
  • 17
0
votes
0 answers

Notify PropertyChanged on ClearChanges/Refresh

I want my UI that is basically purely built on data-binding to refresh when I call ClearChange() or Refresh(RefreshMode.OverwriteChangesFromStore,obj). However it looks like the backing fields are used directly by DataAccess instead of the…
pikausp
  • 1,142
  • 11
  • 31
0
votes
1 answer

Save a custom type in database by using OpenAccess of Telerik

I would like to save in the database a custom type property which is a class. The property to save is myProperty with the type CustomTypeClass in the below example: public class Test { private CustomTypeClass myProperty; public…
profou
  • 197
  • 1
  • 17
0
votes
1 answer

Why is this causing a stack overlflow ? Recursive function and SQLITE

I have a function that constantly needs to check if there is work to do and it goes about in the following fashion: Pseudocode: Class SeperateThread{ function Start(){ DoWork(); } function DoWork(){ New DBContext; …
user1841243
  • 1,663
  • 2
  • 19
  • 35
0
votes
1 answer

Telerik Open Access FetchStrategy does not seem to be applied to my query

I am having some (more) issues with my Telerik OpenAccess ORM. This time in the area of applying Fetch Strategies to a query. Here's the code ... using (DAL.DarkRoomDB ctx = new DarkRoomDB()) { // // Set…
Gary O. Stenstrom
  • 2,284
  • 9
  • 38
  • 59
0
votes
2 answers

Finding objects in a collection that have any string from a list in a subcollection

Ok, this one has me stumped. I have a collection of objects called Interviews. An Interview has a collection of Notes in it. A Note has string (nvarchar(max) on the database) property called NoteText. I have a List called keywords. What I need to do…
davecove
  • 1,001
  • 4
  • 16
  • 36
0
votes
1 answer

Can't update a record that has a null date value in Telerik Open Access

I have a solution with a Telerik Data Access project. I encountered a problem when trying to update a record. I think the problem has to do with the fact that it is a date field with a null value in the database before trying to update it, but I'm…
boilers222
  • 1,901
  • 7
  • 33
  • 71
0
votes
1 answer

How do I add a new table to a Telerik Open Access MVC project?

I've inherited a MVC project that seems to use Telerik Open Access to handle data instead of using something I'm more familiar with like entity framework. I'm trying to understand the whole concept of how to work with this data method, but right…
boilers222
  • 1,901
  • 7
  • 33
  • 71
0
votes
1 answer

telerik OpenAccess NULL reference in ASP.NET MVC

I use telerik Domain Model for ASP.NET MVC 5. When I use context at Unit test project, all thing works perfectly. but when I use it at MVC Controllers I got this Exception: System.NullReferenceException: Object reference not set to an instance of an…