Class ColumnHelper
Commonfunctions for helping with table metadata
Inheritance
System.Object
ColumnHelper
Namespace: Simplic.Framework.DAL.DatabaseMetadata
Assembly: Simplic.Framework.DAL.dll
Syntax
public class ColumnHelper : object
Methods
| Improve this Doc View SourceGetModelDBColumnNames(String, Type, IDictionary<String, String>)
Retrieves the columns from the database table and compares them with the model. Returns only the fields which are found in the model!
Declaration
public static IDictionary<string, string> GetModelDBColumnNames(string tableName, Type modelType, IDictionary<string, string> differentColumnName)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableName | Table to read the columns |
Type | modelType | |
IDictionary<System.String, System.String> | differentColumnName |
Returns
Type | Description |
---|---|
IDictionary<System.String, System.String> |
GetModelDBColumnNames(String, Type, IDictionary<String, String>, String)
Retrieves the columns from the database table and compares them with the model. Returns only the fields which are found in the model!
Declaration
public static IDictionary<string, string> GetModelDBColumnNames(string tableName, Type modelType, IDictionary<string, string> differentColumnName, string databaseName)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableName | Table to read the columns |
Type | modelType | |
IDictionary<System.String, System.String> | differentColumnName | |
System.String | databaseName |
Returns
Type | Description |
---|---|
IDictionary<System.String, System.String> |