Ejemplo n.º 1
0
 public static EntityProj getInstance()
 {
     if (_entity == null)
     {
         _entity = new EntityProj();
     }
     return(_entity);
 }
Ejemplo n.º 2
0
        public void CreateEntityFiles()
        {
            EntityProj entity = EntityProj.getInstance();

            string dirEntity = _rootDirPath + "//" + _projectHash["entityName"];

            _CreateDir(dirEntity);

            #region BaseEntity
            string baseFilePath = dirEntity + "//BaseEntity.cs";
            _CreateFile(baseFilePath, entity.CreateBaseEntity(_projectHash["entityName"].ToString()));
            #endregion

            #region Result
            string resultFilePath = dirEntity + "//Result.cs";
            _CreateFile(resultFilePath, entity.CreateResultEntity(_projectHash["entityName"].ToString()));
            #endregion
        }