/// <summary> /// Deprecated Method for adding a new object to the Countries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCountries(Country country) { base.AddObject("Countries", country); }
/// <summary> /// Create a new Country object. /// </summary> /// <param name="countryId">Initial value of the CountryId property.</param> /// <param name="countryCode">Initial value of the CountryCode property.</param> /// <param name="defaultLanguage">Initial value of the DefaultLanguage property.</param> /// <param name="creationBy">Initial value of the CreationBy property.</param> /// <param name="creationDate">Initial value of the CreationDate property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Country CreateCountry(global::System.Guid countryId, global::System.String countryCode, global::System.String defaultLanguage, global::System.String creationBy, global::System.DateTime creationDate, global::System.Boolean isDeleted) { Country country = new Country(); country.CountryId = countryId; country.CountryCode = countryCode; country.DefaultLanguage = defaultLanguage; country.CreationBy = creationBy; country.CreationDate = creationDate; country.IsDeleted = isDeleted; return country; }