/// <summary> /// Create a new Footballer object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="age">Initial value of the age property.</param> /// <param name="nationality">Initial value of the nationality property.</param> /// <param name="datеOfBirth">Initial value of the datеOfBirth property.</param> /// <param name="height">Initial value of the height property.</param> /// <param name="weight">Initial value of the weight property.</param> /// <param name="number">Initial value of the number property.</param> /// <param name="position">Initial value of the position property.</param> public static Footballer CreateFootballer(global::System.Int32 id, global::System.String name, global::System.String age, global::System.String nationality, global::System.DateTime datеOfBirth, global::System.Int16 height, global::System.Int16 weight, global::System.Int16 number, global::System.String position) { Footballer footballer = new Footballer(); footballer.Id = id; footballer.name = name; footballer.age = age; footballer.nationality = nationality; footballer.datеOfBirth = datеOfBirth; footballer.height = height; footballer.weight = weight; footballer.number = number; footballer.position = position; return footballer; }
/// <summary> /// Deprecated Method for adding a new object to the Footballers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFootballers(Footballer footballer) { base.AddObject("Footballers", footballer); }