/// <summary> /// Create a new Zone object. /// </summary> /// <param name="city">Initial value of the City property.</param> /// <param name="province">Initial value of the Province property.</param> public static Zone CreateZone(global::System.String city, global::System.String province) { Zone zone = new Zone(); zone.City = city; zone.Province = province; return zone; }
/// <summary> /// Create a new User object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userName">Initial value of the UserName property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="coins">Initial value of the Coins property.</param> /// <param name="zone">Initial value of the Zone property.</param> public static User CreateUser(global::System.Guid id, global::System.String userName, global::System.String password, global::System.String email, global::System.Int32 coins, Zone zone) { User user = new User(); user.Id = id; user.UserName = userName; user.Password = password; user.Email = email; user.Coins = coins; user.Zone = StructuralObject.VerifyComplexObjectIsNotNull(zone, "Zone"); return user; }
partial void OnZoneChanging(Zone value);
/// <summary> /// Create a new University object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="universityType">Initial value of the UniversityType property.</param> /// <param name="kind">Initial value of the Kind property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="isEducationDepartment">Initial value of the IsEducationDepartment property.</param> /// <param name="is985">Initial value of the Is985 property.</param> /// <param name="is211">Initial value of the Is211 property.</param> /// <param name="zone">Initial value of the Zone property.</param> public static University CreateUniversity(global::System.Guid id, global::System.String name, global::System.String universityType, global::System.String kind, global::System.String address, global::System.Boolean isEducationDepartment, global::System.Boolean is985, global::System.Boolean is211, Zone zone) { University university = new University(); university.Id = id; university.Name = name; university.UniversityType = universityType; university.Kind = kind; university.Address = address; university.IsEducationDepartment = isEducationDepartment; university.Is985 = is985; university.Is211 = is211; university.Zone = StructuralObject.VerifyComplexObjectIsNotNull(zone, "Zone"); return university; }