I am massively in need to help. I have spent an entire day when I do not have even an hour to waste on a project. I have a Linq to SQL data layer and am doing a simple insert into the DB using the fol
TLDR Summary I\'m having a few issues with ASP.net MVC\'s InsertOnSubmit() function.How do you build and insert new objects into the database without running into key constraints?
I\'m trying to get an insert to work using LINQ and am having some difficulties. I am using this example to base my code: http://msdn.microsoft.com/en-us/library/bb763516.aspx
I have a rather annoying issue with LinqToSql. I have create开发者_StackOverflow中文版d a class that is derived from the class in the DataContext.
Which layer is the best layer to make linq-sql calls as SubmitChanges(), InsertOnSubmit() etc. For example, let\'s say I have two tables Parent and Child. Child table has foreign key on parent (Child
Having trouble getting this. I need get the values that I have added to a table entity through the InsertOnSubmit method. However I have not yet invoked SubmitChanges on the table.
I\'m trying to insert a row in to one of my tables, so I look over the web to find an example for using the DATACONTEXT and found this one:
I\'m experiencing a strange behavior that I really don\'t know how to work around it.I\'m trying to read an entity just after it has been inserted (right after the ExecuteDynamicInsert) and when the p