コード例 #1
0
        public static List <string> DescribeTable(IElequentProvider db, string tableName)
        {
            List <string> listColumns = new List <string>();
            var           columns     = db.Instance().Select($"SELECT name FROM syscolumns WHERE id=OBJECT_ID('{tableName}')").ToArray();

            foreach (var column in columns)
            {
                listColumns.Add(column.name);
            }

            return(listColumns);
        }
コード例 #2
0
 public RolesController(IElequentProvider db)
 {
     this.db = db;
 }
コード例 #3
0
 public VoyagerBaseController(IElequentProvider db)
 {
     this.db = db;
 }
コード例 #4
0
 public HomeController(ILogger <HomeController> logger, IElequentProvider _db)
 {
     _logger  = logger;
     this._db = _db;
 }