EntityFramework [1]

http://www.cnblogs.com/fly_dragon/archive/2011/02/20/1958884.html

中添加的一行稍有问题.

原:

schoolEntities.T_Teacher.AddObject(teacher);



应改为:




schoolEntities.AddTo
T_Teacher
(teacher);

你可能感兴趣的:(framework)