public ASPNetRole GetObjectByKey(KeyValuePair <string, long> keypair) { if (this.Contains(keypair) == false) { return(null); } ASPNetRole ob = this[keypair]; return((ASPNetRole)ob); }
public ASPNetRole GetObjectByKey(object keypair) { if (this.Contains(GetKey(keypair)) == false) { return(null); } ASPNetRole ob = this[GetKey(keypair)]; return((ASPNetRole)ob); }
public ASPNetRole GetObjectByKey(long k_RoleID) { if (this.Contains(GetKey(k_RoleID)) == false) { return(null); } ASPNetRole ob = this[GetKey(k_RoleID)]; return((ASPNetRole)ob); }
public bool ChangeItem(KeyValuePair <string, long> keypair, ASPNetRole item) { ASPNetRole orig = this.GetObjectByKey(keypair); if (orig != null) { int index = this.IndexOf(orig); this.SetItem(index, item); return(true); } return(false); }
public ASPNetRole GetObjectByKey(long k_RoleID, LV.Core.DAL.Base.IRepository repository) { if (this.Contains(GetKey(k_RoleID)) == false) { ASPNetRole ob = repository.GetQuery <ASPNetRole>().FirstOrDefault(o => o.RoleID == k_RoleID); if (ob != null) { this.Add(ob); } return(ob); } ASPNetRole obj = this[GetKey(k_RoleID)]; return((ASPNetRole)obj); }
protected override KeyValuePair <string, long> GetKeyForItem(ASPNetRole item) { return(item.Key); }
public bool DeleteObject(ASPNetRole item, LV.Core.DAL.Base.IRepository repository) { repository.Update(item); return(true); }
public bool AddObject(ASPNetRole item, LV.Core.DAL.Base.IRepository repository) { repository.Add(item); return(true); }