コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Courts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCourts(CourtEntity courtEntity)
 {
     base.AddObject("Courts", courtEntity);
 }
コード例 #2
0
 /// <summary>
 /// Create a new CourtEntity object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="placeId">Initial value of the PlaceId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="courtTypeId">Initial value of the CourtTypeId property.</param>
 /// <param name="floorTypeId">Initial value of the FloorTypeId property.</param>
 /// <param name="isIndoor">Initial value of the IsIndoor property.</param>
 /// <param name="isLighted">Initial value of the IsLighted property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static CourtEntity CreateCourtEntity(global::System.Int32 id, global::System.Int32 placeId, global::System.String name, global::System.Byte courtTypeId, global::System.Byte floorTypeId, global::System.Boolean isIndoor, global::System.Boolean isLighted, global::System.Boolean isActive)
 {
     CourtEntity courtEntity = new CourtEntity();
     courtEntity.Id = id;
     courtEntity.PlaceId = placeId;
     courtEntity.Name = name;
     courtEntity.CourtTypeId = courtTypeId;
     courtEntity.FloorTypeId = floorTypeId;
     courtEntity.IsIndoor = isIndoor;
     courtEntity.IsLighted = isLighted;
     courtEntity.IsActive = isActive;
     return courtEntity;
 }