RelationalPropertyBuilderExtensions.CanSetComment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CanSetComment(IConventionPropertyBuilder, Object, Boolean) |
Returns a value indicating whether the given value can be set as comment for the column. |
CanSetComment(IConventionPropertyBuilder, String, Boolean) |
Returns a value indicating whether the given value can be set as comment for the column. |
CanSetComment(IConventionPropertyBuilder, Object, Boolean)
Returns a value indicating whether the given value can be set as comment for the column.
public static bool CanSetComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, object comment, bool fromDataAnnotation = false);
static member CanSetComment : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * obj * bool -> bool
<Extension()>
Public Function CanSetComment (propertyBuilder As IConventionPropertyBuilder, comment As Object, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- propertyBuilder
- IConventionPropertyBuilder
The builder for the property being configured.
- comment
- Object
The comment for the column.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the given value can be set as default for the column.
Applies to
CanSetComment(IConventionPropertyBuilder, String, Boolean)
Returns a value indicating whether the given value can be set as comment for the column.
public static bool CanSetComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string comment, bool fromDataAnnotation = false);
public static bool CanSetComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? comment, bool fromDataAnnotation = false);
static member CanSetComment : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> bool
<Extension()>
Public Function CanSetComment (propertyBuilder As IConventionPropertyBuilder, comment As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- propertyBuilder
- IConventionPropertyBuilder
The builder for the property being configured.
- comment
- String
The comment for the column.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the given value can be set as default for the column.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
Entity Framework