示例#1
0
 public MySqlORMGenerator(ITextTemplatingEngineHost host, string namespaces, string schemaConnectionString)
 {
     this.Host = host;
     this.SchemaConnectionString = schemaConnectionString;
     this.Namespaces             = namespaces;
     meta = new MySqlMetaData(this.SchemaConnectionString, this.Namespaces);
 }
示例#2
0
        public MySqlORMGenerator(ITextTemplatingEngineHost host, string namespaces, Uri ConfigUrl)
        {
            string connection = string.Empty;

            HttpHelper.Get(ConfigUrl.ToString(), m =>
            {
                connection = m;
            });
            this.Host = host;
            this.SchemaConnectionString = connection;
            this.Namespaces             = namespaces;
            meta = new MySqlMetaData(this.SchemaConnectionString, this.Namespaces);
        }