} // Type can be purchased, raw, manufactured public void addPart(Part p) { using (PartContext _db = new PartContext()) { _db.Parts.Add(p); _db.Dispose(); } }
} // Type can be purchased, raw, manufactured public void addType(Type t) { using (PartContext _db = new PartContext()) { _db.Type.Add(t); _db.Dispose(); } }
public void addPart(Part p) { using (PartContext _db = new PartContext()) { _db.Parts.Add(p); _db.Dispose(); } }
public void addType(List <Type> t) { using (PartContext _db = new PartContext()) { foreach (var type in t) { _db.Type.Add(type); } _db.Dispose(); } }
public void addPart(List <Part> p) { using (PartContext _db = new PartContext()) { foreach (var part in p) { _db.Parts.Add(part); } _db.Dispose(); } }
public void addPart(List<Part> p) { using (PartContext _db = new PartContext()) { foreach (var part in p) { _db.Parts.Add(part); } _db.Dispose(); } }
public void addType(List<Type> t) { using (PartContext _db = new PartContext()) { foreach (var type in t) { _db.Type.Add(type); } _db.Dispose(); } }
public void addType(Type t) { using (PartContext _db = new PartContext()) { _db.Type.Add(t); _db.Dispose(); } }