Exemplo n.º 1
0
 public void AddTosys_resourcerestrict(Sys_ResourceRestrict sys_ResourceRestrict)
 {
     base.AddObject("sys_resourcerestrict", sys_ResourceRestrict);
 }
Exemplo n.º 2
0
 public WTF.Resource.Entity.Sys_ResourceRestrict GetResourceRestrict(int resourceTypeID, string restrictCode)
 {
     WTF.Resource.Entity.Sys_ResourceRestrict instance = this.Sys_ResourceRestrict.Where(string.Concat(new object[] { "it.ResourceTypeID=", resourceTypeID, " and it.RestrictCode='", restrictCode, "'" }), new ObjectParameter[0]).Include("Sys_ResourceRestrictPic").ToList <WTF.Resource.Entity.Sys_ResourceRestrict>().FirstOrDefault <WTF.Resource.Entity.Sys_ResourceRestrict>();
     SysAssert.CheckCondition(instance.IsNull(), string.Concat(new object[] { "请正确传入的资源类型标识:", resourceTypeID, ",限制码", restrictCode }), LogModuleType.ResourceLog);
     return(instance);
 }