/// <summary>
 /// Deprecated Method for adding a new object to the Consumers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConsumers(Consumer consumer)
 {
     base.AddObject("Consumers", consumer);
 }
 /// <summary>
 /// Create a new Consumer object.
 /// </summary>
 /// <param name="apartmentId">Initial value of the ApartmentId property.</param>
 /// <param name="sellType">Initial value of the SellType property.</param>
 /// <param name="operateUser">Initial value of the OperateUser property.</param>
 /// <param name="operateTime">Initial value of the OperateTime property.</param>
 public static Consumer CreateConsumer(global::System.Int32 apartmentId, global::System.Byte sellType, global::System.String operateUser, global::System.DateTime operateTime)
 {
     Consumer consumer = new Consumer();
     consumer.ApartmentId = apartmentId;
     consumer.SellType = sellType;
     consumer.OperateUser = operateUser;
     consumer.OperateTime = operateTime;
     return consumer;
 }
 private bool CheckComsterInfo(Consumer cur)
 {
     if (cur.SellType != 1)
     {
         if (cur.RegionType == null || cur.RegionType > 3 || cur.RegionType < 1 ||
             String.IsNullOrEmpty(cur.Name) ||
             String.IsNullOrEmpty(cur.IdCard) ||
             String.IsNullOrEmpty(cur.RealEstateId) ||
             cur.OriginArea == null ||
             String.IsNullOrEmpty(cur.OriginAddress))
         {
             return false;
         }
     }
     return true;
 }