/// <summary> /// Create a new ref_subject_group object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="groupId">Initial value of the GroupId property.</param> /// <param name="subjectId">Initial value of the SubjectId property.</param> public static ref_subject_group Createref_subject_group(global::System.Int64 id, global::System.Int64 groupId, global::System.Int64 subjectId) { ref_subject_group ref_subject_group = new ref_subject_group(); ref_subject_group.Id = id; ref_subject_group.GroupId = groupId; ref_subject_group.SubjectId = subjectId; return ref_subject_group; }
/// <summary> /// Deprecated Method for adding a new object to the ref_subject_group EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToref_subject_group(ref_subject_group ref_subject_group) { base.AddObject("ref_subject_group", ref_subject_group); }
public void DeleteSubjectFromGroup(ref_subject_group r) { CheckConnection(); try { lock (locker) { db.ref_subject_group.DeleteObject(r); db.SaveChanges(); } } catch (Exception ex) { throw new DBException(ErrorTypes.UnexpectedException, ex); } }