I keep getting an error with the code below. It says Error \"Operator \'==\' cannot be applied to operands of type \'string\' and \'int\'. I have watched a video and Julie Lerman does the exact same t
I have the following compiled query. private static Func<Db, int, IQueryable<Item>> func =
How will the DataContext remember changes internally. What happens if I call SubmitChanges() more than once. If there was an excepti开发者_StackOverflow中文版on while calling SubmitChanges(), is there
I have the following SQL table: ObjectTable -------------------------------------------------- |ID|Name|Order|ParentID|
I want to merge two tables where in one table is scores and in another table are i开发者_如何学Gonformation about for example article.
I\'m facing this exception An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContext. This is not supported. when I try to insert a new e
I\'m having trouble.开发者_开发问答 I can\'t understand existing answers to this on Stack Overflow and am too new to LINQ to SQL to be able to nut it out myself.
I have this method, it receive an Collection of an object (EmployeeState) this object contains this properties: IdEmployeeState(int), StateName(string), and Description(string) , and I need show in a
I\'m trying to load a collection of entities using Linq2SQL. The problem is, I dont know what the entities are,IList<object>. I have tried to select them using reflection, but I get an out of me
I use the following code to fill the Table1 dictionary with the information found within the LINQ query.