public static IProject BuildProj(string filePath)
        {
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(filePath);
            string attr = xmlDoc.FirstChild.Name;
            IProject proj = null;
            if (attr == "EntityProj")
            {
                proj = new BEProj(filePath, string.Empty);
            }
            else if (attr == "BPProj")
            {
                proj = new BPProj(filePath, string.Empty);
            }

            return proj;
        }
Example #2
0
 public static IProject CreateSVCProject(string ns, string projName)
 {
     BPProj proj = new BPProj(string.Empty, System.Guid.NewGuid().ToString());
     proj.ProjName = projName;
     proj.Namespace = ns;
     proj.IsService = true;
     proj.ToFile();
     return proj;
 }
Example #3
0
 public BPColumn(string guid, BPProj proj, BPEntity entity)
     : base(guid)
 {
     this._guid = guid;
     this._proj = proj;
     this._entity = entity;
     this.DataState = DataState.Add;
 }
 public BuildBPProj(BPProj proj)
 {
     _proj = proj;
 }
Example #5
0
 public BPEntity(BPProj proj, string guid, string floderGuid)
     : base(guid)
 {
     this._proj = proj;
     this._floderGuid = floderGuid;
     this.DataState = DataState.Add;
     this.IsChanged = true;
 }