示例#1
0
        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);
        }
示例#2
0
 public Customer()
 {
     dataErrorSupport = new DataErrorSupport(this);
         //.AddValidationRule("Email", ValidateEmail);
     this.PostalCD = "";
     this.Keisho = "様";
     this.CustName = "";
     this.Furigana = "";
     this.Phone = "";
     this.Phone2 = "";
 }
示例#3
0
        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;
        }
示例#4
0
        public Order(long OrderID)
        {
            dataErrorSupport = new DataErrorSupport(this);

            this.OrderID = OrderID;
        }