protected override void AddValue(string value) { Subj subject = new Subj(); subject.idSubject = FreeIndex; subject.nameSubject = value; EntitiesHolder.Entities.Subj.AddObject(subject); }
/// <summary> /// Deprecated Method for adding a new object to the Subj EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSubj(Subj subj) { base.AddObject("Subj", subj); }
/// <summary> /// Create a new Subj object. /// </summary> /// <param name="idSubject">Initial value of the idSubject property.</param> /// <param name="nameSubject">Initial value of the nameSubject property.</param> public static Subj CreateSubj(global::System.Decimal idSubject, global::System.String nameSubject) { Subj subj = new Subj(); subj.idSubject = idSubject; subj.nameSubject = nameSubject; return subj; }