Beispiel #1
0
        }                                           // Type can be purchased, raw, manufactured

        public void addPart(Part p)
        {
            using (PartContext _db = new PartContext())
            {
                _db.Parts.Add(p);
                _db.Dispose();
            }
        }
Beispiel #2
0
        }                                           // Type can be purchased, raw, manufactured

        public void addType(Type t)
        {
            using (PartContext _db = new PartContext())
            {
                _db.Type.Add(t);
                _db.Dispose();
            }
        }
Beispiel #3
0
 public void addPart(Part p)
 {
     using (PartContext _db = new PartContext())
     {
         _db.Parts.Add(p);
         _db.Dispose();
     }
 }
Beispiel #4
0
        public void addType(List <Type> t)
        {
            using (PartContext _db = new PartContext())
            {
                foreach (var type in t)
                {
                    _db.Type.Add(type);
                }

                _db.Dispose();
            }
        }
Beispiel #5
0
        public void addPart(List <Part> p)
        {
            using (PartContext _db = new PartContext())
            {
                foreach (var part in p)
                {
                    _db.Parts.Add(part);
                }

                _db.Dispose();
            }
        }
Beispiel #6
0
        public void addPart(List<Part> p)
        {
            using (PartContext _db = new PartContext())
            {
                foreach (var part in p)
                {
                    _db.Parts.Add(part);
                }

                _db.Dispose();
            }
        }
Beispiel #7
0
        public void addType(List<Type> t)
        {
            using (PartContext _db = new PartContext())
            {
                foreach (var type in t)
                {
                    _db.Type.Add(type);
                }

                _db.Dispose();
            }
        }
Beispiel #8
0
 public void addType(Type t)
 {
     using (PartContext _db = new PartContext())
     {
         _db.Type.Add(t);
         _db.Dispose();
     }
 }