/// <summary> /// Create a new Unit object. /// </summary> /// <param name="unitId">Initial value of the UnitId property.</param> /// <param name="propertyInfoId">Initial value of the PropertyInfoId property.</param> /// <param name="buildingId">Initial value of the BuildingId property.</param> /// <param name="addressLine2">Initial value of the AddressLine2 property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Unit CreateUnit(global::System.Int32 unitId, global::System.Int32 propertyInfoId, global::System.Int32 buildingId, global::System.String addressLine2, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted) { Unit unit = new Unit(); unit.UnitId = unitId; unit.PropertyInfoId = propertyInfoId; unit.BuildingId = buildingId; unit.AddressLine2 = addressLine2; unit.CreateDate = createDate; unit.CreatedBy = createdBy; unit.IsDeleted = isDeleted; return unit; }
/// <summary> /// Deprecated Method for adding a new object to the Units EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUnits(Unit unit) { base.AddObject("Units", unit); }