public int ModifyAccountType(AccountType accountType, string keyValue) { var entity = sAccount.FindEntity(keyValue); EntityCopyHelper.CopyEnity(entity, accountType); var ret = sAccount.Update(entity); return(ret); }
public List <Organize> GetSchoolList() { string school = Configs.GetValue("School"); //Get 学校ID var f = ExtLinq.True <AccountType>(); f = f.And(x => (x.DeleteMark == null ? false : x.DeleteMark) != true); f = f.And(x => x.TypeName.Trim() == school); var accountType = accountApp.FindEntity(f); if (accountType == null) { return(null); } var e = ExtLinq.True <Organize>(); e = e.And(x => (x.DeleteMark == null ? false : x.DeleteMark) != true); e = e.And(x => x.OrgType == accountType.ID); var orgList = organizeApp.IQueryable(e).ToList(); return(orgList); }