public abstract class Customer
{
public int Id { get; set; }
public string Name { get; set; }
public bool IsCorporate { get; set; }
}
public class PrivateCustomer: Customer
{
public string Address { get; set; }
public DateTime DateOfContract { get; set; }
public int QuoteAmmount { get; set; }
public string PromotionCode { get; set; }
}
public class BusinesCustomer: Customer
{
public string BusinessName { get; set; }
public string BusinessAddress { get; set; }
public TypeofContract ContractType { get; set; }
public DateTime ContractStart { get; set; }
public DateTime ContractEnd { get; set; }
}
public enum TypeofContract
{
Hourly =1,
Daily = 2,
Weekly = 3
}
DB 스토리지 = 몇 가지 예를 보았다 : 그들은이 과정을 수행 한 http://i.msdn.microsoft.com/dynimg/IC315206.gif -> OnlineCourse 및 OnsiteCourse는 그것을위한 C#을 층을 찾을 수 couldnt한다.
어느 것이 든 내가 EF 코드의 첫 번째 접근 방식에서 어떻게 해결해야하는지에 대한 아이디어가 있습니다.
친절한 연락 Vinay.