예제 #1
0
 partial void OnBirthplaceChanging(Location value);
예제 #2
0
 /// <summary>
 /// Create a new Person object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="birthplace">Initial value of the Birthplace property.</param>
 public static Person CreatePerson(global::System.Int32 id, global::System.String name, Location birthplace)
 {
     Person person = new Person();
     person.Id = id;
     person.Name = name;
     person.Birthplace = StructuralObject.VerifyComplexObjectIsNotNull(birthplace, "Birthplace");
     return person;
 }
예제 #3
0
 /// <summary>
 /// Create a new Movie object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="shooting">Initial value of the Shooting property.</param>
 public static Movie CreateMovie(global::System.Int32 id, global::System.String name, Location shooting)
 {
     Movie movie = new Movie();
     movie.Id = id;
     movie.Name = name;
     movie.Shooting = StructuralObject.VerifyComplexObjectIsNotNull(shooting, "Shooting");
     return movie;
 }
예제 #4
0
 partial void OnShootingChanging(Location value);
예제 #5
0
 /// <summary>
 /// Create a new Location object.
 /// </summary>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 public static Location CreateLocation(global::System.String city, global::System.String state, global::System.String country)
 {
     Location location = new Location();
     location.City = city;
     location.State = state;
     location.Country = country;
     return location;
 }