23 lines
641 B
C#
23 lines
641 B
C#
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();
|
||
// }
|
||
//}
|
||
}
|
||
}
|