Show / Hide Table of Contents

Class FluentMapper<TModel>

Inheritance
object
FluentMapper<TModel>
Implements
IMapper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Data.PetaPoco
Assembly: DotNetNuke.dll
Syntax
[CLSCompliant(false)]
public class FluentMapper<TModel> : IMapper
Type Parameters
Name Description
TModel

Constructors

FluentMapper(string)

Declaration
public FluentMapper(string tablePrefix)
Parameters
Type Name Description
string tablePrefix

Properties

CacheKey

Declaration
public string CacheKey { get; set; }
Property Value
Type Description
string

CachePriority

Declaration
public CacheItemPriority CachePriority { get; set; }
Property Value
Type Description
CacheItemPriority

CacheTimeOut

Declaration
public int CacheTimeOut { get; set; }
Property Value
Type Description
int

Mappings

Declaration
public Dictionary<string, FluentColumnMap> Mappings { get; set; }
Property Value
Type Description
Dictionary<string, FluentColumnMap>

Scope

Declaration
public string Scope { get; set; }
Property Value
Type Description
string

TableInfo

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

Methods

GetColumnInfo(PropertyInfo)

Declaration
public ColumnInfo GetColumnInfo(PropertyInfo pocoProperty)
Parameters
Type Name Description
PropertyInfo pocoProperty
Returns
Type Description
ColumnInfo

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<object, object>

GetTableInfo(Type)

Declaration
public TableInfo GetTableInfo(Type pocoType)
Parameters
Type Name Description
Type pocoType
Returns
Type Description
TableInfo

GetTablePrefix()

Declaration
public string GetTablePrefix()
Returns
Type Description
string

GetToDbConverter(PropertyInfo)

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

Implements

PetaPoco.IMapper

Extension Methods

FluentMapperExtensions.Cache<TModel>(FluentMapper<TModel>, string, int, CacheItemPriority)
FluentMapperExtensions.PrimaryKey<TModel>(FluentMapper<TModel>, string, bool)
FluentMapperExtensions.Scope<TModel>(FluentMapper<TModel>, string)
FluentMapperExtensions.TableName<TModel>(FluentMapper<TModel>, string)
JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS