Exemplo n.º 1
0
        public School InsertSchool(School school)
        {
            this.context.School.InsertOnSubmit(school);
            this.SecureSubmitChanges();

            //この段階でIDとかがschoolのインスタンスに反映されている
            return school;
        }
		private void detach_School(School entity)
		{
			this.SendPropertyChanging();
			entity.Student = null;
		}
 partial void DeleteSchool(School instance);
		private void attach_School(School entity)
		{
			this.SendPropertyChanging();
			entity.Student = this;
		}
 partial void UpdateSchool(School instance);
 partial void InsertSchool(School instance);