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

            this.OrderID = OrderID;
        }