After a long thought we found that the best approach for our needs would be to use multiple tables as if it was classes, so w开发者_Python百科e have something like:
I have studied a bit into the lifespan of the DataContext trying to work out what is the best possible way of doing things.
I\'ve got a situation where I need to prefetch some entities through a many-to-many relationship. So it\'s like the classic BlogPost <- BlogPostTag -> Tag situation.
In a WPF application i\'m using LINQ to SQL classes (created by SQL Metal, thus implementing POCOs). Let\'s assume i have a table User and a Table Pictures. These pictures are actually created from o
I have a SQL Server 2008 database with a composite key: ProjectID (GUID) and TaskID (int). ProjectID is a foreign key to a Projects table. I want to have TaskID Auto-Increment, but restart for every P
I\'ve figured out how to do conditional queries with linq to sql and I\'ve also figured out how to OR where clauses. Unfortunately I can\'t figure out how to do both at once. I can do a conditional wh
I have a process that (at night) takes a large chunk of data in the form of a linq2sql query and dumps this as XML (sitemaps). My problem is that I\'m sometimes getting:
This one i had today is a strange one. I have this query in an assembly method. public Order[] SelectAllOrders()
I have the following entities: CartoonStory CartoonFigure Sex A CartoonStory is told by one or more CartoonFigures and a CartoonFigure is of a Sex male or female.
I\'m trying to do a left join on a constant like this: SELECT [t0].[DeviceId], [t0].[DeviceTypeId], [t0].[UnitId],