public Order() { // SQL Server Compact does not support entities with server-generated keys or values when it is used // with the Entity Framework. Therefore, we need to create the keys ourselves. // See also: http://technet.microsoft.com/en-us/library/cc835494.aspx //Id = Guid.NewGuid(); dataErrorSupport = new DataErrorSupport(this); }
public Customer() { dataErrorSupport = new DataErrorSupport(this); //.AddValidationRule("Email", ValidateEmail); this.PostalCD = ""; this.Keisho = "様"; this.CustName = ""; this.Furigana = ""; this.Phone = ""; this.Phone2 = ""; }
public Order(long OrderID, int SendCustNo, int ResceiveCustNo, int ProductID) { // SQL Server Compact does not support entities with server-generated keys or values when it is used // with the Entity Framework. Therefore, we need to create the keys ourselves. // See also: http://technet.microsoft.com/en-us/library/cc835494.aspx //Id = Guid.NewGuid(); dataErrorSupport = new DataErrorSupport(this); this.OrderID = OrderID; this.ReceiveCustID = ReceiveCustID; this.SendCustID = SendCustID; this.ProductID = ProductID; }
public Order(long OrderID) { dataErrorSupport = new DataErrorSupport(this); this.OrderID = OrderID; }