// Insert new project public PROJECT InsertPROJECTS(int idsolution, string tenproject) { var newItem = new PROJECT { IDSolution = idsolution, TenProject = tenproject }; return _repPROJECTS.Insert(newItem) ? newItem : null; }
/// <summary> /// Deprecated Method for adding a new object to the PROJECTS EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPROJECTS(PROJECT pROJECT) { base.AddObject("PROJECTS", pROJECT); }
/// <summary> /// Create a new PROJECT object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="iDSolution">Initial value of the IDSolution property.</param> public static PROJECT CreatePROJECT(global::System.Int32 id, global::System.Int32 iDSolution) { PROJECT pROJECT = new PROJECT(); pROJECT.ID = id; pROJECT.IDSolution = iDSolution; return pROJECT; }
public ProjStructure BuildProject(PROJECT proj) { var projStr = new ProjStructure { Name = proj.TenProject, Classes = new List<ClassStructure>() }; foreach (var _class in proj.CLASSES) { var classStr = BuildClass(_class); projStr.Classes.Add(classStr); } return projStr; }