Exemplo n.º 1
0
 public OrderImpl(Person person, DateTime orderDate, DateTime shippedDate, String orderState)
 {
     markNew();
     m_Person = new ToOneRelation(typeof(Person), "PersonID", null);
     m_OrderDetails = new ToManyRelation(typeof(OrderDetail), "OrderID", null, true);
     m_ShippedDate = shippedDate;
     m_OrderState = orderState;
     m_OrderDate = orderDate;
     m_Person.Object = person;
 }
Exemplo n.º 2
0
 public AddressImpl(Person person, String city, String street, String postalCode, String phone, String email)
 {
     markNew();
     m_Person = new ToOneRelation(typeof(Person), "PersonID", null);
     m_Email = email;
     m_Street = street;
     m_City = city;
     m_Phone = phone;
     m_Person.Object = person;
     m_PostalCode = postalCode;
 }
Exemplo n.º 3
0
 public override Address createAddress(Person person, String city, String street, String postalCode, String phone, String email)
 {
     return new AddressImpl(person, city, street, postalCode, phone, email);
 }
Exemplo n.º 4
0
 public override Order createOrder(Person person, DateTime orderDate, DateTime shippedDate, String orderState)
 {
     return new OrderImpl(person, orderDate, shippedDate, orderState);
 }