LinQ to Sql中的增删改查2种方法

LinQ to Sql中的增删改查2种方法
LinQ to Sql中的增删改查2种方法
第一种方法:
1:增加 修改 删除
LinQ to Sql中的增删改查2种方法
2:查询
LinQ to Sql中的增删改查2种方法
第二种方法:
1:查询所有的数据
LinQ to Sql中的增删改查2种方法
2:查询指定的数据(筛选)
LinQ to Sql中的增删改查2种方法
3:添加数据
LinQ to Sql中的增删改查2种方法
4:删除数据
LinQ to Sql中的增删改查2种方法

总结:
在第二种方法中 添加 删除 修改 都要用.SubmitChanges()方法向数据库提交数据