Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9028411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:58:41+00:00 2026-06-16T06:58:41+00:00

I have many important question about E-Commerce solution database : For validation your form

  • 0

I have many important question about E-Commerce solution database :

  1. For validation your form fields, for example (Null Value can not be inserted , Unique value , just number input, Date validation and etc.)

    what’s the best way :

    a) Use function with T-SQL in my database on the table fields and handle with Try-Catch
    b) Use .NET validation component
    c) Use Ajax component
    d) Use businesses method

  2. If I use Entity Framework, should I use stored procedures or I can use insert, update and delete method from Entity Framework?

    Which one is the best way for E-Commerce solution ?

  3. For E-Commerce solution we should 3 or 5 step normalization or create Flat table ?

  4. For E-Commerce solution Linq To Sql or Entity Framework ? which one and why ?

These are very important questions for me

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:58:42+00:00Added an answer on June 16, 2026 at 6:58 am

    I think the right answer is more nuanced. The ‘best’ way means validating at many places along the way.

    You should validate in the form using JavaScript/jQuery. Tell users about required values, improper formats, etc.

    Controllers should bind and validate values they receive.

    Services should never trust a UI. They also have additional information that a UI can never have: business rules for validity. Those are context-dependent and may change. Let the execution of business rules be done by the middle tier services.

    Validating in the database, using constraints like UNIQUE, triggers or stored procedures, should be the last resort and only used if the database is shared by several applications. I wouldn’t want to wait until I was persisting data to find out that it was invalid. The earlier you can inform a user, the better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

REST resources from database tables I have recently learnt things about REST (many of
I asked this question earlier, but I'm missing one important thing. I have a
I have many different NSArray 's stored in .dat files, in the Documents folder
I have many PowerPoint presentations that I need to be able to add to
I have many many files in a folder, and I want to process them
I have many directories with files in them. I want to create a comma
We have many projects with several files inside each. Files can be checked in
I have many flags that I want to store them in an integer, so
I have many text files containing bank transactions in the middle of them. Each
I have many buttons in my layout and they work well. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.