• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class FluentMapper<TModel>

Inheritance
System.Object
FluentMapper<TModel>
Namespace: DotNetNuke.Data.PetaPoco
Assembly: DotNetNuke.dll
Syntax
public class FluentMapper<TModel> : IMapper
Type Parameters
Name Description
TModel

Constructors

| Improve this Doc View Source

FluentMapper(String)

Initializes a new instance of the FluentMapper<TModel> class.

Declaration
public FluentMapper(string tablePrefix)
Parameters
Type Name Description
System.String tablePrefix

Properties

| Improve this Doc View Source

CacheKey

Declaration
public string CacheKey { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

CachePriority

Declaration
public CacheItemPriority CachePriority { get; set; }
Property Value
Type Description
CacheItemPriority
| Improve this Doc View Source

CacheTimeOut

Declaration
public int CacheTimeOut { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Mappings

Declaration
public Dictionary<string, FluentColumnMap> Mappings { get; set; }
Property Value
Type Description
Dictionary<System.String, FluentColumnMap>
| Improve this Doc View Source

Scope

Declaration
public string Scope { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TableInfo

Declaration
public TableInfo TableInfo { get; set; }
Property Value
Type Description
TableInfo

Methods

| Improve this Doc View Source

GetColumnInfo(PropertyInfo)

Declaration
public ColumnInfo GetColumnInfo(PropertyInfo pocoProperty)
Parameters
Type Name Description
PropertyInfo pocoProperty
Returns
Type Description
ColumnInfo
| Improve this Doc View Source

GetFromDbConverter(PropertyInfo, Type)

Declaration
public Func<object, object> GetFromDbConverter(PropertyInfo targetProperty, Type sourceType)
Parameters
Type Name Description
PropertyInfo targetProperty
Type sourceType
Returns
Type Description
Func<System.Object, System.Object>
| Improve this Doc View Source

GetTableInfo(Type)

Declaration
public TableInfo GetTableInfo(Type pocoType)
Parameters
Type Name Description
Type pocoType
Returns
Type Description
TableInfo
| Improve this Doc View Source

GetTablePrefix()

Declaration
public string GetTablePrefix()
Returns
Type Description
System.String
| Improve this Doc View Source

GetToDbConverter(PropertyInfo)

Declaration
public Func<object, object> GetToDbConverter(PropertyInfo sourceProperty)
Parameters
Type Name Description
PropertyInfo sourceProperty
Returns
Type Description
Func<System.Object, System.Object>

Extension Methods

FluentMapperExtensions.Cache<TModel>(FluentMapper<TModel>, String, Int32, CacheItemPriority)
FluentMapperExtensions.PrimaryKey<TModel>(FluentMapper<TModel>, String, Boolean)
FluentMapperExtensions.Scope<TModel>(FluentMapper<TModel>, String)
FluentMapperExtensions.TableName<TModel>(FluentMapper<TModel>, String)
JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS