示例#1
0
 public int Add(Model.FilePermission filePermission)
 {
     using (WebPortalEntities dataEntities = new WebPortalEntities())
     {
         dataEntities.AddToFilePermissions(filePermission);
         return dataEntities.SaveChanges();
     }
 }