I want somebody 2 take me out off my comfort zone make me feel like me.I want somebody that could understand me and be their for me no matter what.a gud person just been through …It is responsible for all the operations performed on the database.One of the biggest issues when working with LINQ to SQL is the life time of an object when part of the Data Context.The reason is that the department object that you are trying to update belongs to a different Data Context and the update method uses a new Data Context object which does not contain an entry for the dirty department object (dirty meaning changed! You can try attaching the object to the Data Context as shown below: public static void Update Department(tbl Department department) But this will insert a duplicate entry for the department object.
This can be done either manually in the code or by mapping these methods to stored procedures in Entity Developer. When saving an entity, the Linq Connect engine checks whether your Data Context type has custom methods for inserting, updating or deleting the entities of this type.
Someone who will accept me for everything that i am.
I want somebody to not be afraid to hold my hand in public.
In some cases, this may be not the behaviour you want.
For example, you may want to perform some validation, calculate some of the columns or even change data in other tables when saving changes to an entity object.