开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜