示例#1
0
 /// <summary>
 /// Create a new Location object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="createdAt">Initial value of the CreatedAt property.</param>
 public static Location CreateLocation(global::System.Int64 id, global::System.String name, global::System.DateTime createdAt)
 {
     Location location = new Location();
     location.Id = id;
     location.Name = name;
     location.CreatedAt = createdAt;
     return location;
 }
示例#2
0
 public static LocationVM FromDataObject(Location loc) {
     if (loc == null) { return null; }
     return new LocationVM {
         Capacity = loc.Capacity,
         CreatedAt = loc.CreatedAt,
         Id = loc.Id,
         LastUpdated = loc.LastUpdated,
         Name = loc.Name,
         Score = loc.Score,
     };
 }
示例#3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Locations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLocations(Location location)
 {
     base.AddObject("Locations", location);
 }