Class FluentMapperExtensions
Inheritance
System.Object
FluentMapperExtensions
Assembly: DotNetNuke.dll
Syntax
public static class FluentMapperExtensions : object
Methods
|
Improve this Doc
View Source
AddFluentMapper<TModel>(IDataContext)
Declaration
public static FluentMapper<TModel> AddFluentMapper<TModel>(this IDataContext dataContext)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Cache<TModel>(FluentMapper<TModel>, String, Int32, CacheItemPriority)
Declaration
public static FluentMapper<TModel> Cache<TModel>(this FluentMapper<TModel> mapper, string cacheKey, int timeOut = 20, CacheItemPriority priority = null)
Parameters
Type |
Name |
Description |
FluentMapper<TModel> |
mapper |
|
System.String |
cacheKey |
|
System.Int32 |
timeOut |
|
CacheItemPriority |
priority |
|
Returns
Type Parameters
|
Improve this Doc
View Source
PrimaryKey<TModel>(FluentMapper<TModel>, String, Boolean)
Declaration
public static FluentMapper<TModel> PrimaryKey<TModel>(this FluentMapper<TModel> mapper, string primaryKey, bool autoIncrement = true)
Parameters
Type |
Name |
Description |
FluentMapper<TModel> |
mapper |
|
System.String |
primaryKey |
|
System.Boolean |
autoIncrement |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Property<TModel, TProperty>(FluentMapper<TModel>, Expression<Func<TModel, TProperty>>, String, Func<Object, Object>, Func<Object, Object>, Boolean, Boolean)
Declaration
public static FluentMapper<TModel> Property<TModel, TProperty>(this FluentMapper<TModel> mapper, Expression<Func<TModel, TProperty>> action, string column, Func<object, object> fromDbConverter, Func<object, object> toDbConverter, bool primaryKey = false, bool readOnly = false)
where TModel : class
Parameters
Type |
Name |
Description |
FluentMapper<TModel> |
mapper |
|
Expression<Func<TModel, TProperty>> |
action |
|
System.String |
column |
|
Func<System.Object, System.Object> |
fromDbConverter |
|
Func<System.Object, System.Object> |
toDbConverter |
|
System.Boolean |
primaryKey |
|
System.Boolean |
readOnly |
|
Returns
Type Parameters
Name |
Description |
TModel |
|
TProperty |
|
|
Improve this Doc
View Source
Property<TModel, TProperty>(FluentMapper<TModel>, Expression<Func<TModel, TProperty>>, String, Func<Object, Object>, Boolean, Boolean)
Declaration
public static FluentMapper<TModel> Property<TModel, TProperty>(this FluentMapper<TModel> mapper, Expression<Func<TModel, TProperty>> action, string column, Func<object, object> fromDbConverter, bool primaryKey = false, bool readOnly = false)
where TModel : class
Parameters
Type |
Name |
Description |
FluentMapper<TModel> |
mapper |
|
Expression<Func<TModel, TProperty>> |
action |
|
System.String |
column |
|
Func<System.Object, System.Object> |
fromDbConverter |
|
System.Boolean |
primaryKey |
|
System.Boolean |
readOnly |
|
Returns
Type Parameters
Name |
Description |
TModel |
|
TProperty |
|
|
Improve this Doc
View Source
Property<TModel, TProperty>(FluentMapper<TModel>, Expression<Func<TModel, TProperty>>, String, Boolean, Boolean)
Declaration
public static FluentMapper<TModel> Property<TModel, TProperty>(this FluentMapper<TModel> mapper, Expression<Func<TModel, TProperty>> action, string column, bool primaryKey = false, bool readOnly = false)
where TModel : class
Parameters
Type |
Name |
Description |
FluentMapper<TModel> |
mapper |
|
Expression<Func<TModel, TProperty>> |
action |
|
System.String |
column |
|
System.Boolean |
primaryKey |
|
System.Boolean |
readOnly |
|
Returns
Type Parameters
Name |
Description |
TModel |
|
TProperty |
|
|
Improve this Doc
View Source
Scope<TModel>(FluentMapper<TModel>, String)
Declaration
public static FluentMapper<TModel> Scope<TModel>(this FluentMapper<TModel> mapper, string scope)
Parameters
Type |
Name |
Description |
FluentMapper<TModel> |
mapper |
|
System.String |
scope |
|
Returns
Type Parameters
|
Improve this Doc
View Source
TableName<TModel>(FluentMapper<TModel>, String)
Declaration
public static FluentMapper<TModel> TableName<TModel>(this FluentMapper<TModel> mapper, string tableName)
Parameters
Type |
Name |
Description |
FluentMapper<TModel> |
mapper |
|
System.String |
tableName |
|
Returns
Type Parameters