public EntityModelMetadata(IModelMetadataProvider provider, ICompositeMetadataDetailsProvider detailsProvider, EntityMetadataDetails details, DefaultModelBindingMessageProvider modelBindingMessageProvider) : base( provider, detailsProvider, details, modelBindingMessageProvider) { _details = details; _detailsProvider = detailsProvider; }
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); }
public EntityModelMetadata(IModelMetadataProvider provider, ICompositeMetadataDetailsProvider detailsProvider, EntityMetadataDetails details) : base(provider, detailsProvider, details) { _details = details; _detailsProvider = detailsProvider; }