/// <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; }
private bool FilterPowerType(PowerType entity) { return (entity.Id == this.PowerTypeId); }
/// <summary> /// Deprecated Method for adding a new object to the PowerTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPowerTypes(PowerType powerType) { base.AddObject("PowerTypes", powerType); }