コード例 #1
0
        public void Persist(int agentId)
        {
            this.AgentId = agentId;
            String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(Office));

            DatabaseControl.SendInsert(SqlInsert);
        }
コード例 #2
0
        public void Persist(int propertyId)
        {
            this.PropertyId = propertyId;
            String SqlInsert = ClassControl.SqlInsertFromObject(this, typeof(Address));

            DatabaseControl.SendInsert(SqlInsert);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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));
        }
コード例 #5
0
        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));
        }
コード例 #6
0
        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()));
        }