Пример #1
0
 protected AbsBuilder(BuilderOption parameters)
 {
     DataBase = parameters.DataBase;
     Directory = parameters.OutputDirectory;
     Parameters = parameters;
     if (Directory != null && !Directory.Exists)
     {
         Directory.Create();
     }
 }
Пример #2
0
        private static void Main(string[] args)
        {
            DataBase db = BuildDB();
            var options = new BuilderOption
                              {
                                  Namespace = "Com.Vervidian.HireCredit.DataAccess",
                                  OutputDirectory = new DirectoryInfo(@"C:\project\HireCredit\Com.Vervidian.HireCredit.DataAccess\Dao"),
                                  DataBase = db,
                                  Template = new FileInfo("./testdata/ParserTest.tpl"),
                                  Override = true
                              };
            options.Namespace = "Com.Vervidian.HireCredit.Bean";
            options.OutputDirectory = new DirectoryInfo(@".\Bean");
            options.FileNameFormat = "{0}Bean";

            var facedeBuilder = new ClassBuilder(options);
            string[] files = facedeBuilder.Build();
            foreach (string file in files)
            {
                Console.WriteLine("file : " + file);
            }

            Console.ReadLine();
        }
Пример #3
0
 public FileBuilder(BuilderOption parameters, string extension)
     : base(parameters)
 {
     Extension = extension;
 }
Пример #4
0
 public HBMBuilder(BuilderOption parameters)
     : base(parameters)
 {
 }