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
44
votes
3 answers

Iterate through properties and values of an object returned via a linq query on a domain model

I have a custom entity in a relational database that I have mapped to the CLR via a domain model. So by using the following statement, I can pull in an entity from my database into memory via a LINQ query on the domain model, like so; var inspection…
bdemartino
  • 443
  • 1
  • 4
  • 7
25
votes
1 answer

How to handle DBContext when using Ninject

I am trying to use Ninject and OpenAccess for the first time. Please help me with the following. Here is what my project looks like... public class ContentController : Controller { private ContentService contentSvc; public…
eadam
  • 23,151
  • 18
  • 48
  • 71
14
votes
1 answer

Entity Framework 5 vs Telerik OpenAccess ORM (specifically)

I am starting a new project and want advice on choosing an ORM. I know this topic has been brought up before, but this topic is specific to either Entity Framework 5 (not 4) or Telerik OpenAccess ORM. The project will reside on Windows Azure and use…
dimoss
  • 1,506
  • 2
  • 16
  • 24
8
votes
4 answers

How to save byte[] using a procedure?

This stored procedure does not save the data, it seems to be a problem with the VARBINARY. I am passing a byte[] to it, but then it doesn't work. If I send this parameter as NULL it works. I'm calling the procedure with the following code: public…
Gadonski
  • 3,150
  • 2
  • 25
  • 31
6
votes
1 answer

IQueryable.Distinct() vs List.Distinct()

I have a linq query that I am using Distinct() on. If I just call Distinct() without converting to a List then it does not return a distinct list - it still contains duplicates. However if I convert to a List and then call Distinct() - it works as…
Chris B
  • 5,311
  • 11
  • 45
  • 57
6
votes
2 answers

"A commit is already in progress" attempting to save changes in Telerik OpenAccess ORM

I have been trying to figure out how an error is occurring in my code. The exception tells me a commit is already in progress, but unless a call to SaveChanges is asynchronous, I don't see how that is happening. I have a Scheduler class that holds…
Justin
  • 6,373
  • 9
  • 46
  • 72
5
votes
1 answer

Can someone explain LINQ's intersect properly to me? I don't understand why this doesn't work

I have an object called Page, with an instance called p that has a custom property called AssociatedAttributes. If I do the following: int numMatchingAttributes = p.AssociatedAttributes.Intersect( p.AssociatedAttributes ).Distinct( ).Count( );…
cray1
  • 93
  • 5
4
votes
3 answers

How do we switch from Telerik Open Access to anything else?

Our company has been using Telerik Open Access for years. We have multiple projects using it including some in development and some in production that need updated. Because Telerik no longer updates or supports Open Access, we are having a variety…
4
votes
1 answer

How can Telerik OpenAccess ORM be used in partnership with TFS?

In a number of team projects I've worked on over the past year, we have chosen the Telerik OpenAccess ORM as the tool to manage our database model. We also use TFS as our version control software I've ran into a number of difficulties using the…
loxdog
  • 1,007
  • 3
  • 12
  • 30
3
votes
4 answers

Sort Linq list with one column

I guess it should be really simple, but i cannot find how to do it. I have a linq query, that selects one column, of type int, and i need it sorted. var values = (from p in context.Products where p.LockedSince == null …
Tys
  • 3,592
  • 9
  • 49
  • 71
3
votes
0 answers

How to enable login option while configuring my Nuget (private) feed in visual studio

I want to enable the login option for Nuget feeding in visual studio. If a user configures my feed in visual studio. I want to enable login option. The login popup contains email and password (I have a database for user details). After successfully…
3
votes
0 answers

"Unit" tests in visual studio failing when run together but succeed when run individually

I have written a bunch of repository methods against my database which I access using Telerik Data/Open Access ORM. I have written about 30+ tests using "Microsoft.VisualStudio.TestTools.UnitTesting" tools. These are not "unit" tests in the…
3
votes
1 answer

Delete all One to Many associated items - Telerik OpenAccess ORM

Using Telerik OpenAccess ORM I have 2 objects User and Investment. More specifically Investments contains a foreign key to User as any typical one to many relationship. In other words each User can have mutliple Investments but each Investment can…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
3
votes
2 answers

Linq complex search resulting in NullReferenceException

I have the following LINQ code used in a unified search function. var searchObjects = from objectA in this.context.DB.objectAs join objectB in this.context.DB.objectBs on objectA equals objectB.objectA into objectAB from AB in…
Miika L.
  • 3,333
  • 1
  • 24
  • 35
3
votes
1 answer

How to Change Telerik OpenAccess Namespace?

I want to change the namespace of the complex types generated when creating a domain method. When I right click on the type and go to Properties, there is a property called Namespace, but if I change it, it will only produce compile errors. I tried…
Luiscencio
  • 3,855
  • 13
  • 43
  • 74
1
2 3
9 10