首次提交:添加src文件夹代码
This commit is contained in:
22
Cowain.Bake.BLL/RoleInfoService.cs
Normal file
22
Cowain.Bake.BLL/RoleInfoService.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Unity;
|
||||
|
||||
namespace Cowain.Bake.BLL
|
||||
{
|
||||
public class RoleInfoService : ServiceBase
|
||||
{
|
||||
public RoleInfoService(IUnityContainer unityContainer) : base(unityContainer)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//public int Update(TRoleInfo model)
|
||||
//{
|
||||
// using (var Context = new BakingEntities())
|
||||
// {
|
||||
// Context.Set<TRoleInfo>().Attach(model);//将数据附加到上下文,支持实体修改和新实体,重置为UnChanged
|
||||
// Context.Entry<TRoleInfo>(model).State = EntityState.Modified;
|
||||
// return Context.SaveChanges();
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user