summaryM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)

Namespace: DotNetNuke.Data.PetaPoco
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
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
Visual Basic
<ExtensionAttribute> 
Public Shared Function Property(Of TModel As Class, TProperty) ( 
	mapper As FluentMapper(Of TModel),
	action As Expression(Of Func(Of TModel, TProperty)),
	column As String,
	fromDbConverter As Func(Of Object, Object),
	Optional primaryKey As Boolean = false,
	Optional readOnly As Boolean = false
) As FluentMapper(Of TModel)

Parameters

mapper
Type: DotNetNuke.Data.PetaPoco..::..FluentMapper<(Of <(<'TModel>)>)>
parammapperM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)
action
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TModel, TProperty>)>)>>)>)>
paramactionM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)
column
Type: System..::..String
paramcolumnM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)
fromDbConverter
Type: System..::..Func<(Of <(<'Object, Object>)>)>
paramfromDbConverterM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)
primaryKey
Type: System..::..Boolean
paramprimaryKeyM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)
readOnly
Type: System..::..Boolean
paramreadOnlyM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)

Type Parameters

TModel
typeparamTModelM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)
TProperty
typeparamTPropertyM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)

Return Value

returnsM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Func{System.Object,System.Object},System.Boolean,System.Boolean)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FluentMapper<(Of <(<'TModel>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also