public virtual void Update() { resourceSchema.Dal.Usermetadata dbo = null; try { dbo = new resourceSchema.Dal.Usermetadata(); dbo.UserMetaData_Update(this.Sysid, this.Publicid, this._usersysid, this.Keypath, this.Keyvalue, this.Active); } catch (System.Exception ) { throw; } finally { if ((dbo != null)) { dbo.Dispose(); } } }
public virtual void Delete() { resourceSchema.Dal.Usermetadata dbo = null; try { dbo = new resourceSchema.Dal.Usermetadata(); dbo.UserMetaData_Delete(this.Sysid); } catch (System.Exception ) { throw; } finally { if ((dbo != null)) { dbo.Dispose(); } } }
public static Usermetadata Load(System.Nullable<int> SysId) { resourceSchema.Dal.Usermetadata dbo = null; try { dbo = new resourceSchema.Dal.Usermetadata(); System.Data.DataSet ds = dbo.UserMetaData_Select_One(SysId); Usermetadata obj = null; if (GlobalTools.IsSafeDataSet(ds)) { if ((ds.Tables[0].Rows.Count > 0)) { obj = new Usermetadata(); obj.Fill(ds.Tables[0].Rows[0]); } } return obj; } catch (System.Exception ) { throw; } finally { if ((dbo != null)) { dbo.Dispose(); } } }
public virtual void Load() { resourceSchema.Dal.Usermetadata dbo = null; try { dbo = new resourceSchema.Dal.Usermetadata(); System.Data.DataSet ds = dbo.UserMetaData_Select_One(this.Sysid); if (GlobalTools.IsSafeDataSet(ds)) { if ((ds.Tables[0].Rows.Count > 0)) { this.Fill(ds.Tables[0].Rows[0]); } } } catch (System.Exception ) { throw; } finally { if ((dbo != null)) { dbo.Dispose(); } } }
public static UsermetadataCollection GetAll() { resourceSchema.Dal.Usermetadata dbo = null; try { dbo = new resourceSchema.Dal.Usermetadata(); System.Data.DataSet ds = dbo.UserMetaData_Select_All(); UsermetadataCollection collection = new UsermetadataCollection(); if (GlobalTools.IsSafeDataSet(ds)) { for (int i = 0; (i < ds.Tables[0].Rows.Count); i = (i + 1)) { Usermetadata obj = new Usermetadata(); obj.Fill(ds.Tables[0].Rows[i]); if ((obj != null)) { collection.Add(obj); } } } return collection; } catch (System.Exception ) { throw; } finally { if ((dbo != null)) { dbo.Dispose(); } } }