public void Persist(int agentId) { this.AgentId = agentId; String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(Office)); DatabaseControl.SendInsert(SqlInsert); }
public void Persist(int propertyId) { this.PropertyId = propertyId; String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(Address)); DatabaseControl.SendInsert(SqlInsert); }
public void Persist(int propertyId) { this.PhotoLocation = String.Concat(propertyId, "_", (Int32.Parse(SequenceId) - 1), ".png"); this.PropertyId = propertyId.ToString(); String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(PropertyPhoto)); DatabaseControl.SendInsert(SqlInsert); }
public void Persist(int propertyId) { this.PropertyId = propertyId; String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(AgentDetails)); DatabaseControl.SendInsert(SqlInsert); this.Office.Persist(Int32.Parse(this.ID)); }
public Boolean Persist(int PropertyId) { this.PropertyId = PropertyId; this.Dimension = this.Dimension.Replace("'", String.Empty); this.Level = this.Level.Replace("'", String.Empty); String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(Room)); return(DatabaseControl.SendInsert(SqlInsert)); }
public Int32 Persist() { this.AnalyticsClick = String.Empty; this.AnalyticsView = String.Empty; this.PublicRemarks = this.PublicRemarks.Replace("'", String.Empty); String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(PropertyDetails)); //Console.WriteLine(String.Empty); //Console.WriteLine(SqlInsert); //Console.WriteLine(String.Empty); DatabaseControl.SendInsert(SqlInsert); return(Int32.Parse(this.ID.ToString())); }