submitchanges
LINQ to SQL - How do stored procedures interact with unsubmited datacontext changes?
Someone here asked: \"Linq-To-Sql enables calling SPs. If this SP executes an update/delete/insert, do I need to SubmitChanges() after it?\"[详细]
2023-01-10 18:15 分类:问答Issue with Updating Changes in LINQ
I\'m having an issue with updating the database.The app shows the updated value, but the database does not.No errors returned.My table has a PK.Using DotConnect for Oracle, but the LINQ syntax is the[详细]
2023-01-07 04:40 分类:问答LINQ DataContext inserts object that is not attached
I have created two separate objects, one of class Order and one of class TempOrder. When I tryto insert the TempOrder object in the db using db.Temp开发者_JAVA百科Orders.InsertOnSubmit(obj) and then c[详细]
2023-01-04 21:41 分类:问答"Row Not Found or Changed" Error Pops Up Randomly
When I run DB.SubmitChanges(); I occasionally get an error that reads: \"Row not found or changed\". The reason why this error bugs me so much is because there will always a row that should be found[详细]
2023-01-04 10:18 分类:问答Several SubmitChanges in succession very slow
One question: Why when I use following code for (int i = 0; i < 10000; i++) { Entity e = new Entity();[详细]
2023-01-02 01:12 分类:问答Exceptions by DataContext
I\'ve been doing some searching on the internet, but I can\'t seem to find the awnser. What exceptions can a DataContext throw? Or to be more specific, what exceptions does the DataContext.SubmitChang[详细]
2022-12-31 07:33 分类:问答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 分类:问答can't insert new row into a child table with submit changes in a linq to sql app
I can\'t figure out the correct way to insert a new record in a child table. There\'s a single datacontext in the app and the target table (CustNotes) is a child of a table named Customer. There\'s a[详细]
2022-12-18 22:30 分类:问答Does deleting from a LINQ DB also delete records in other tables that have a foreign key association?
So at the root of my DB, I have a table \"Customer.\" Customer has foreign keys going to about 6-7 other tables such as Receipts, Addresses, Documents etc. If I were to delete a customer using SubmitC[详细]
2022-12-15 08:09 分类:问答how does linq2sql handle tables with just FK in it?
I have a mapping table like: Article_to_Categories ArticleID CategoryID How would I insert into this table using开发者_开发技巧 linq2sql?Provided that corresponding rows exist in the Article and Ca[详细]
2022-12-11 18:13 分类:问答
加载中,请稍侯......