Exemple #1
0
        public Customer(int ID)
        {
            DB = new DBObject();
            DataSet ds = new DataSet();

            ds        = DB.Query($"SELECT * FROM kunde WHERE ID = {ID}");
            this.ID   = (int)ds.Tables[0].Rows[0][0];
            Name      = (string)ds.Tables[0].Rows[0][1];
            Address   = (string)ds.Tables[0].Rows[0][2];
            ZipCode   = new ZipCode_City((int)ds.Tables[0].Rows[0][3]);
            Telephone = (string)ds.Tables[0].Rows[0][4];
            Email     = (string)ds.Tables[0].Rows[0][5];
        }
Exemple #2
0
 public Customer()
 {
     DB      = new DBObject();
     ZipCode = new ZipCode_City();
 }