Ejemplo n.º 1
0
        public MaintainProject copy()
        {
            var proj = new MaintainProject();

            proj.name            = name;
            proj.db_initial_path = db_initial_path;
            proj.dbta_path       = dbta_path;
            proj.model_namespace = model_namespace;
            return(proj);
        }
Ejemplo n.º 2
0
        public string set(string name, MaintainProject project)
        {
            if (name.isNull())
            {
                return("项目名不能为空");
            }
            name = name.Trim();
            var idx = getIndex(name);

            if (idx < 0)
            {
                var proj = new MaintainProject();
                proj.name = name;
                projects.Add(proj);
                idx = projects.Count - 1;
            }
            if (project != null)
            {
                projects[idx].db_initial_path = project.db_initial_path;
                projects[idx].dbta_path       = project.dbta_path;
                projects[idx].model_namespace = project.model_namespace;
            }
            return("");
        }
Ejemplo n.º 3
0
 public string set(MaintainProject project)
 {
     return(set(project.name, project));
 }