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

23 lines
641 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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();
// }
//}
}
}