Exemplo n.º 1
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public RelationalAnnotationsBuilder(
     [NotNull] InternalMetadataBuilder internalBuilder,
     ConfigurationSource configurationSource)
     : base(internalBuilder.Metadata)
 {
     MetadataBuilder     = internalBuilder;
     ConfigurationSource = configurationSource;
 }
Exemplo n.º 2
0
        public CypherAnnotationsBuilder(
            [NotNull] InternalMetadataBuilder internalBuilder,
            ConfigurationSource configurationSource
            ) : base(internalBuilder.Metadata)
        {
            Check.NotNull(internalBuilder, nameof(internalBuilder));

            MetadataBuilder     = internalBuilder;
            ConfigurationSource = configurationSource;
        }
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 protected virtual void MergeAnnotationsFrom([NotNull] InternalMetadataBuilder annotatableBuilder)
 {
     foreach (var annotation in annotatableBuilder.Metadata.GetAnnotations())
     {
         HasAnnotation(
             annotation.Name,
             annotation.Value,
             annotation.GetConfigurationSource(),
             canOverrideSameSource: false);
     }
 }
        public RelationalAnnotationsBuilder(
            [NotNull] InternalMetadataBuilder internalBuilder,
            ConfigurationSource configurationSource,
            [CanBeNull] string providerPrefix)
            : base(internalBuilder.Metadata, providerPrefix)
        {
            Check.NotNull(internalBuilder, nameof(internalBuilder));

            EntityTypeBuilder   = internalBuilder;
            ConfigurationSource = configurationSource;
        }