I have an application written using C# on the top of ASP.NET Core 5.0 framework. I am looking for the right way to add items to the ModelMetadata.Addi ...
I have an application written using C# on the top of ASP.NET Core 5.0 framework. I am looking for the right way to add items to the ModelMetadata.Addi ...
Trying to set the title attribute of an html element as the parameter passed to the entity.Property().HasComment(comment) method. I've tried with no ...
I am working on a new project in .net Core having previously been working with .net Framework. I wish to produce html select elements for boolean pro ...
I have a ViewModel containing this property: Is there a way to set the DataType attribute dynamically to show it as a DataType.Text if it's showing ...
Where I can find AssociatedMetadataProvider in .Net Core? Or is there a way to implement GetTypeDescriptor in DefaultModelMetadataProvider? In MVC 5 ...
I am using Spring Batch (version 4.1.2). The problem is the following: 1/ batch job is step oriented (2 steps), the first step loads data from oracle ...
I have a project written in C# on the top on ASP.NET MVC 5 framework. I am trying to decouple my views from my view model so I can make my views reusa ...
How to disable the [Required] attribute that has been set on a model property. I tried with below code using new keyword but not working. I also tri ...
In Entity Framework 6 I could get the ModelMetadata for a class (myModel) like this: How can I do the same in .net core 1.1.1? ...
I'm trying to extend CachedDataAnnotationsModelMetadataProvider to not cache Custom ValidationAttribute. How can i achieve this? I tried looking in as ...
I am into a situation that my table names are different from the class property on the model using mapping in EF 6. the Model and Database goes like t ...
I'm having problems with my localized Model attributes as we decided to not use the build-in localization functionallity. The problem is that the ...
I am trying to access a model's metadata attributes to create a helper to automatically add HtmlAttributes based on DataAnnotations. Problem is, the ...
I have developed a MVC helper for generating display and editable tables (a jquery plugin is required to allow dynamic addition and deletion of rows w ...
I'm seeing alternative approaches to this such as AdditionalValues, but I'm wondering if it's possible to end up in a scenario where you can add a new ...
I need clarification on how to implement Betty's code solution to transferring data annotation metadata to ViewModels with AutoMapper (see here). Or i ...
I want to make additional editor template for the Int32. In it I want to get all attributes(custom/default-data-annotations) and do some work with the ...
We are looking to use CachedDataAnnotationsModelMetadataProvider as it improves performance and we use a lot of Meta Data in our MVC4 application. We ...
I've searched all around, read all the posts related to creating a strongly typed helper, but none have addressed my issue. Problem: When referencing ...
I have interface of a model declared, with class implementing it: I also have model implementation, with different Metadata: I have View, where ...