public bool RealEstateOwnersTypeInfo_Update(RealEstateOwnersTypeInfo data)
 {
     using (DbCommand cmd = db.GetStoredProcCommand("Group_Update"))
     {
         cmd.Parameters.Add(new SqlParameter("@RealEstateOwnersTypeID", data.RealEstateOwnersTypeID));
         cmd.Parameters.Add(new SqlParameter("@RealEstateOwnersTypeName", data.RealEstateOwnersTypeName));
         try
         {
             db.ExecuteNonQuery(cmd);
             return(true);
         }
         catch (Exception ex)
         {
             return(false);
             //throw ex;
         }
         finally
         {
             if (cmd != null)
             {
                 cmd.Dispose();
             }
         }
     }
 }
        public RealEstateOwnersTypeInfo RealEstateOwnersTypeInfoIDataReader(IDataReader dr)
        {
            RealEstateOwnersTypeInfo obj = new RealEstateOwnersTypeInfo();

            obj.RealEstateOwnersTypeID   = (dr["RealEstateOwnersTypeID"] is DBNull) ? string.Empty : dr["RealEstateOwnersTypeID"].ToString();
            obj.RealEstateOwnersTypeName = (dr["RealEstateOwnersTypeName"] is DBNull) ? string.Empty : dr["RealEstateOwnersTypeName"].ToString();
            return(obj);
        }