开发者

Using the .NET 3.5 Entity Framework how can I save an entity?

开发者 https://www.devze.com 2023-01-13 18:15 出处:网络
I have for example a table called Client. Usually in .NET 4 I wo开发者_开发技巧uld do: dbEntities.Clients.AddObject(myClienteObject);

I have for example a table called Client.

Usually in .NET 4 I wo开发者_开发技巧uld do:

dbEntities.Clients.AddObject(myClienteObject);

but in .NET 3.5 I cannot find this method, any suggestions?


entities.AddToClients(newClient);

Would do the job I guess? After that you ofcourse call

entities.SaveChanges();
0

精彩评论

暂无评论...
验证码 换一张
取 消