public StudentContext(IEnumerable <Student> items) { if (items == null) { throw new ArgumentNullException("items"); } Items = new MySqlObjectSet <Student>(); foreach (Student item in items) { Items.AddObject(item); } }
public StudentContext() { Items = new MySqlObjectSet <Student>(); }