public DomainManager(GeneratorOptions generatorOptions, ClassGenerator classGenerator, SqlServerInterrogator interrogator)
 {
     _generatorOptions = generatorOptions;
     _classGenerator   = classGenerator;
     _interrogator     = interrogator;
     _connectionString = interrogator.ConnectionString;
 }
Beispiel #2
0
        protected List <SchemaColumnInfo> GetProcedureColumns(string procedureName)
        {
            SqlServerInterrogator inter = new SqlServerInterrogator(_options.SqlConnectionString);

            return(inter.GetProcedureColumnInfoList(procedureName).ToList());
        }
Beispiel #3
0
        protected List <SchemaColumnInfo> GetTextCommandColumns(string textCommand)
        {
            SqlServerInterrogator inter = new SqlServerInterrogator(_options.SqlConnectionString);

            return(inter.GetTextCommandColumnInfoList(textCommand).ToList());
        }