// Insert a new class
        public CLASS InsertCLASSES(int idproject, string tenclass, string classfilename)
		{
			var newItem = new CLASS
			{
                IDProject = idproject,
				TenClass = tenclass,
                ClassPath = classfilename
			};
            return _repCLASSES.Insert(newItem) ? newItem : null;
		}
 /// <summary>
 /// Deprecated Method for adding a new object to the CLASSES EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCLASSES(CLASS cLASS)
 {
     base.AddObject("CLASSES", cLASS);
 }
 /// <summary>
 /// Create a new CLASS object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="iDProject">Initial value of the IDProject property.</param>
 public static CLASS CreateCLASS(global::System.Int32 id, global::System.Int32 iDProject)
 {
     CLASS cLASS = new CLASS();
     cLASS.ID = id;
     cLASS.IDProject = iDProject;
     return cLASS;
 }
 public ClassStructure BuildClass(CLASS _class)
 {
     var invar = _class.INVARIANTS.FirstOrDefault(item => item.IDClass == _class.ID) != null ? _class.INVARIANTS.FirstOrDefault(item => item.IDClass == _class.ID).NoiDung : null;
     var classStr = new ClassStructure
     {
         Name = _class.TenClass,
         Invariant = invar,
         LstInvarintConditions = invar != null ? ClassStructure.InitInvariants(invar) : null,
         Methods = new List<MethodStructure>(),
         ClassPath = _class.ClassPath
     };
     foreach (var _method in _class.METHODS)
     {
         var methodStr = BuildMethod(_method);
         classStr.Methods.Add(methodStr);
     }
     return classStr;
 }