DataAnnotationsExtensions | Validation extensions for DataAnnotations | Model View Controller library

 by   srkirkland C# Version: 5.0 License: BSD-3-Clause

kandi X-RAY | DataAnnotationsExtensions Summary

kandi X-RAY | DataAnnotationsExtensions Summary

DataAnnotationsExtensions is a C# library typically used in Architecture, Model View Controller applications. DataAnnotationsExtensions has no vulnerabilities, it has a Permissive License and it has low support. However DataAnnotationsExtensions has 2 bugs. You can download it from GitHub.

This project provides common validation attributes (full list on the project website) which extend the built-in ASP.NET DataAnnotations (Required, Range, RegularExpression and StringLength). The core library provides server-side validation attributes that can be used in any .NET 4.0 or 4.5 project (no MVC dependency). There is also an easily pluggable client-side validation library which can be used in ASP.NET MVC 3 or 5 projects using unobtrusive jquery validation (only MVC included javascript files are required). All validation attributes are covered with unit tests and also have a dedicated controller in the included sample website (click Demos to see a demonstration of each validation attribute). Please see the project website for details:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              DataAnnotationsExtensions has a low active ecosystem.
              It has 301 star(s) with 78 fork(s). There are 19 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 5 open issues and 57 have been closed. On average issues are closed in 375 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of DataAnnotationsExtensions is 5.0

            kandi-Quality Quality

              DataAnnotationsExtensions has 2 bugs (0 blocker, 0 critical, 2 major, 0 minor) and 0 code smells.

            kandi-Security Security

              DataAnnotationsExtensions has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              DataAnnotationsExtensions code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              DataAnnotationsExtensions is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              DataAnnotationsExtensions releases are available to install and integrate.
              DataAnnotationsExtensions saves you 309 person hours of effort in developing the same functionality from scratch.
              It has 744 lines of code, 0 functions and 141 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DataAnnotationsExtensions
            Get all kandi verified functions for this library.

            DataAnnotationsExtensions Key Features

            No Key Features are available at this moment for DataAnnotationsExtensions.

            DataAnnotationsExtensions Examples and Code Snippets

            No Code Snippets are available at this moment for DataAnnotationsExtensions.

            Community Discussions

            Trending Discussions on DataAnnotationsExtensions

            QUESTION

            WCF not implementing data annotation
            Asked 2017-Sep-22 at 14:56

            I have an N-Tier solution. It has four projects as shown below:

            1. Infrastructure (Model class)
            2. Repository
            3. Service (WCF)
            4. Web (Presentation)

            The infrastructure takes care of the model classes

            Infrastructure

            ...

            ANSWER

            Answered 2017-Sep-22 at 14:56

            A key bit of information you have left out is how you imported your service reference into you Presentation project.

            I am going to assume for the time being that you used the Service Reference wizard - this is what is causing your issue. When you use the provided wizard, visual studio looks at the hosted WSDL definition for your WCF service and auto generates new proxy and data contracts in the project you are working in. WSDLs do not support the data annotations you used and therefor are not copied over to the new contracts defined in the presentation project.

            To fix this you have two options.

            1) Navigate to the auto generated classes in your Presentation project and mark them up. Obviously this will lead to duplication of code in the long run and is not the most ideal.

            2) Reference your data contracts and service contracts by DLL and write your own proxy class that inherits from ClientBase. You can find more details about that here: Create WCF Client without auto generated proxy.

            Source https://stackoverflow.com/questions/46360646

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install DataAnnotationsExtensions

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/srkirkland/DataAnnotationsExtensions.git

          • CLI

            gh repo clone srkirkland/DataAnnotationsExtensions

          • sshUrl

            git@github.com:srkirkland/DataAnnotationsExtensions.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link