/// <summary> /// 获取带schema的表名 /// </summary> /// <param name="db"></param> /// <param name="tableName"></param> /// <returns></returns> public string GetTableNameWithSchema(SqlSugarClient db, string tableName) { return(tableName); }
/// <summary> /// 判段是否包含主键 /// </summary> /// <param name="db"></param> /// <param name="tableName"></param> /// <returns></returns> internal static bool IsPrimaryKey(SqlSugarClient db, string tableName) { return(GetPrimaryKeyByTableName(db, tableName) != null); }
/// <summary> /// 获取表结构信息 /// </summary> /// <param name="db"></param> /// <param name="tableName"></param> /// <returns></returns> public List <PubModel.DataTableMap> GetTableColumns(SqlSugarClient db, string tableName) { string sql = SqlSugarTool.GetTtableColumnsInfo(tableName); return(db.SqlQuery <PubModel.DataTableMap>(sql)); }