Пример #1
0
 public EntityModelMetadata(IModelMetadataProvider provider, ICompositeMetadataDetailsProvider detailsProvider,
                            EntityMetadataDetails details, DefaultModelBindingMessageProvider modelBindingMessageProvider) : base(
         provider, detailsProvider, details, modelBindingMessageProvider)
 {
     _details         = details;
     _detailsProvider = detailsProvider;
 }
Пример #2
0
        protected virtual EntityMetadataDetails ConvertMetadataDetails(DefaultMetadataDetails details)
        {
            var entityDetails = new EntityMetadataDetails(details.Key, details.ModelAttributes);

            entityDetails.BindingMetadata    = details.BindingMetadata;
            entityDetails.ContainerMetadata  = details.ContainerMetadata;
            entityDetails.DisplayMetadata    = details.DisplayMetadata;
            entityDetails.PropertyGetter     = details.PropertyGetter;
            entityDetails.PropertySetter     = details.PropertySetter;
            entityDetails.Properties         = entityDetails.Properties;
            entityDetails.ValidationMetadata = details.ValidationMetadata;

            return(entityDetails);
        }
Пример #3
0
 public EntityModelMetadata(IModelMetadataProvider provider, ICompositeMetadataDetailsProvider detailsProvider,
                            EntityMetadataDetails details) : base(provider, detailsProvider, details)
 {
     _details         = details;
     _detailsProvider = detailsProvider;
 }