summaryM:DotNetNuke.Data.PetaPoco.FluentMapperExtensions.Property``2(DotNetNuke.Data.PetaPoco.FluentMapper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,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, 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, 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.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.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.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.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.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.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.Boolean,System.Boolean)