Files
6098/Cowain.Bake.BLL/RoleInfoService.cs

23 lines
641 B
C#
Raw Permalink Normal View History

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();
// }
//}
}
}