insertonsubmit
Linq to SQL "Cannot insert the value NULL" when NOT NULL!
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[详细]
2023-03-15 23:42 分类:问答ASP.net MVC Linq-to-SQL Insertion Problems
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?[详细]
2023-03-11 07:47 分类:问答Getting A LINQ .InsertOnSubmit To Work
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[详细]
2022-12-30 05:38 分类:问答[LINQ]InsertOnSubmit NullReferenceException
I have a rather annoying issue with LinqToSql. I have create开发者_StackOverflow中文版d a class that is derived from the class in the DataContext.[详细]
2022-12-22 17:43 分类:问答In which layer to make linq-sql calls as SubmitChanges(), InsertOnSubmit() etc
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[详细]
2022-12-19 19:25 分类:问答Linq to SQL: How to get values added thru InsertOnSubmit but before SubmitChanges?
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.[详细]
2022-12-17 23:06 分类:问答LinqToSql - "insert on submit"
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:[详细]
2022-12-15 01:17 分类:问答LINQ to SQL: Read entity while calling "SubmitChanges" causes DuplicateKeyException
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[详细]
2022-12-09 09:47 分类:问答