示例#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;
 }