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.Func{System.Object,System.Object},System.Boolean,System.Boolean)
Namespace: DotNetNuke.Data.PetaPocoAssembly: 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, Func<Object, Object> toDbConverter, 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), toDbConverter 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.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.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.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.Func{System.Object,System.Object},System.Boolean,System.Boolean)
- toDbConverter
- Type: System..::..Func<(Of <(<'Object, Object>)>)>
paramtoDbConverterM: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.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.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.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.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.Func{System.Object,System.Object},System.Boolean,System.Boolean)