示例#1
0
        public StudentContext(IEnumerable <Student> items)
        {
            if (items == null)
            {
                throw new ArgumentNullException("items");
            }

            Items = new MySqlObjectSet <Student>();
            foreach (Student item in items)
            {
                Items.AddObject(item);
            }
        }
示例#2
0
 public StudentContext()
 {
     Items = new MySqlObjectSet <Student>();
 }