I am building an application in which I have Models, ViewModels added in the business layer, and Controller and views in the Web application. Now I want to apply data annotation through the view model which is located in the Business layer. My questions is how can I use data annotation which is applied in viewmodel that is created in different layer i.e in my case in the business layer.
ASP.NET MVC Core - ViewModel in Business Layer and implement data annotation
311 views Asked by Deepesh Verma At
0
There are 0 answers
Related Questions in ASP.NET-CORE
- Windows environment variables at appsettings.json
- Which approach is right while creating a service for your update method?
- New Blazor Web App, Password Reset "A valid antiforgery token was not provided"
- No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
- how to get the html for a tag helper in code
- How to share authorization implemented in the server project with the client project in Blazor Web App Auto project?
- Why https is disabled on publish in .NET Core 7.0
- How to set language in a server-side rendering blazor app
- How can I debug server side rendering blazor code in a component?
- ASP.NET Core 6 randomly returning 200 with empty response
- ASP.NET Core MVC : NullReferenceException: Object reference not set to an instance of an object
- ASP.NET Core Identity Custom Register Endpoint
- VS Community 2022 cannot install dotnet-ef when i try to publish
- How does ASP.NET Core Identity ensure username is unique under concurrent conditions?
- In clean architecture, is the presentation layer allowed to communicate directly with the infrastructure layer?
Related Questions in VIEWMODEL
- Why do I get 'Failed to instantiate a ViewModel' when passing ViewModel class as an argument to a composable?
- Changes to my model/viewmodel are not charging what's on my view
- Android Koin - not found after update to 3.2.0
- Splash Screen Android XML
- Referencing SD card from Kotlin
- Proper way to return value from custom UserControl's DependencyProperty and uses viewModel?
- Blazor two-way data binding with InputSelect never enters VM property set
- LiveData Observer is not working in jetpack compose
- RelayCommand (MVVM Toolkit) Simple Demo explaination
- Hello i have created 3 viewModels and want to connect them to a single View(UI) but can't
- How to asynchronously update UI-related @Published variables in ViewModel?
- QueryProperty on ViewModel gets assigned to variable too late in .NET MAUI?
- Cannot create an instance of com.example.project.mainViewModel when using Jetpack Compose
- GUI doesn't update while running
- How to pass result from viewModelScope to activity
Related Questions in DATA-ANNOTATIONS
- How much time can data preprocessing and annotation for fine tuning an LLM take for training it on around 1k docs
- LLM for geo data annotation
- StringLengthAttribute does not enforce length
- Workaround for compile-time constant requirement in ASP.NET Core DataAnnotations
- ValidateOnStart() and [Required] don't seem to work
- Using DataAnnotation Model Validation in Minimal Api
- How can I get access to MaxLengthAttribute Class to obtain the LENGTH value of a field during validation?
- How to add localization for default data annotations validation error messages in ASP.NET Core 6 MVC?
- how to DbContextBulkExtensions.BulkUpdate with ConcurrencyCheck
- SwaggerUI custom ValidationAttribute not working on client's validation in Asp.Net Web API
- How to change the annotation of data resulted by Yolov8?
- How can I raed(distract) annotaion creater information with PyPDF2?
- .NET RegularExpression DataAnnotation Attribure Not Matching Correctly
- DbContext.OnModelCreating - Reading custom attribute for each DbSet
- MudBlazor fluent validation when disabled using .when(), then DataAnnotation validation is in effect
Related Questions in BUSINESS-LAYER
- Updating properties in a class that contains an Enum
- Manage GUI and logic interaction in Python
- Interaction within Business Logic Layer in 3-layered Architecture?
- Software Architecture: Does Service Layer and Business Layer has their own Model
- ASP.NET MVC Core - ViewModel in Business Layer and implement data annotation
- How to direct exceptions from Business layer to UI layer
- C# Unique Property Validation in Business Layer
- What should be implemented in data layer and what in business layer?
- Document/action/command permission/access control, rbac, abac
- Storing object in memory for using it in Business Layer
- Are the relations of this domain model based uml class diagram correct and in which class should required methods be placed?
- How to transform multiple "old" C# business objects layer to be exposed in WCF
- Design pattern for mapping database in Data Access Layer [C#]
- ASP.NET MVC UnitOfWork and Business Services / Layer
- Simple data manipulation: in Entity Model or Business layer?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)