示例#1
0
 /// <summary>
 /// Create a new PowerType object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static PowerType CreatePowerType(global::System.Int32 id, global::System.String name)
 {
     PowerType powerType = new PowerType();
     powerType.Id = id;
     powerType.Name = name;
     return powerType;
 }
示例#2
0
 private bool FilterPowerType(PowerType entity)
 {
     return (entity.Id == this.PowerTypeId);
 }
示例#3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PowerTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPowerTypes(PowerType powerType)
 {
     base.AddObject("PowerTypes", powerType);
 }