protected virtual IProperty GetNonRootDiscriminatorProperty()
        {
            var propertyName = (string)Annotations.GetAnnotation(RelationalAnnotationNames.DiscriminatorProperty);

            return(propertyName == null ? null : EntityType.FindProperty(propertyName));
        }
 protected virtual bool SetSchema([CanBeNull] string value)
 => Annotations.SetAnnotation(RelationalAnnotationNames.Schema, Check.NullButNotEmpty(value, nameof(value)));
예제 #3
0
 protected virtual bool SetHiLoSequenceSchema([CanBeNull] string value)
 => Annotations.SetAnnotation(SqlServerAnnotationNames.HiLoSequenceSchema, Check.NullButNotEmpty(value, nameof(value)));
 protected virtual bool SetIsClustered(bool?value) => Annotations.SetAnnotation(SqlServerAnnotationNames.Clustered, value);
예제 #5
0
 protected virtual bool SetGeneratedValueSql([CanBeNull] string value)
 => Annotations.SetAnnotation(RelationalAnnotationNames.GeneratedValueSql, Check.NullButNotEmpty(value, nameof(value)));
 protected virtual bool SetTableName(string value)
 => Annotations.SetAnnotation(RelationalAnnotationNames.TableName, Check.NullButNotEmpty(value, nameof(value)));