Click here to Skip to main content
15,922,512 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: petition Pin
Pete O'Hanlon22-Aug-15 12:55
mvePete O'Hanlon22-Aug-15 12:55 
GeneralRe: petition Pin
Nitzan Levi22-Aug-15 19:45
Nitzan Levi22-Aug-15 19:45 
QuestionSendMailAsync() doesn't work in Console application. Pin
Member 118814092-Aug-15 23:06
Member 118814092-Aug-15 23:06 
AnswerRe: SendMailAsync() doesn't work in Console application. Pin
Pete O'Hanlon3-Aug-15 0:39
mvePete O'Hanlon3-Aug-15 0:39 
GeneralRe: SendMailAsync() doesn't work in Console application. Pin
Member 118814093-Aug-15 1:29
Member 118814093-Aug-15 1:29 
GeneralRe: SendMailAsync() doesn't work in Console application. Pin
Pete O'Hanlon3-Aug-15 1:31
mvePete O'Hanlon3-Aug-15 1:31 
GeneralRe: SendMailAsync() doesn't work in Console application. Pin
Member 118814093-Aug-15 2:11
Member 118814093-Aug-15 2:11 
GeneralRe: SendMailAsync() doesn't work in Console application. Pin
Pete O'Hanlon3-Aug-15 2:15
mvePete O'Hanlon3-Aug-15 2:15 
GeneralRe: SendMailAsync() doesn't work in Console application. Pin
Member 118814093-Aug-15 2:24
Member 118814093-Aug-15 2:24 
GeneralRe: SendMailAsync() doesn't work in Console application. Pin
Richard Deeming3-Aug-15 2:22
mveRichard Deeming3-Aug-15 2:22 
QuestionMultiple file selection issue in v3.5 Pin
Aniiil30-Jul-15 2:04
Aniiil30-Jul-15 2:04 
SuggestionRe: Multiple file selection issue in v3.5 Pin
Richard MacCutchan30-Jul-15 4:38
mveRichard MacCutchan30-Jul-15 4:38 
QuestionFiltering selections Pin
Member 1187104228-Jul-15 23:17
Member 1187104228-Jul-15 23:17 
AnswerRe: Filtering selections Pin
Richard MacCutchan29-Jul-15 0:43
mveRichard MacCutchan29-Jul-15 0:43 
QuestionWhy is it that Metro style apps do not include "Imports System.Data.SqlClient"? Pin
Ray Raymos26-Jul-15 0:00
Ray Raymos26-Jul-15 0:00 
SuggestionRe: Why is it that Metro style apps do not include "Imports System.Data.SqlClient"? Pin
Richard MacCutchan26-Jul-15 1:24
mveRichard MacCutchan26-Jul-15 1:24 
GeneralRe: Why is it that Metro style apps do not include "Imports System.Data.SqlClient"? Pin
Afzaal Ahmad Zeeshan26-Jul-15 2:30
professionalAfzaal Ahmad Zeeshan26-Jul-15 2:30 
AnswerRe: Why is it that Metro style apps do not include "Imports System.Data.SqlClient"? Pin
Afzaal Ahmad Zeeshan26-Jul-15 2:30
professionalAfzaal Ahmad Zeeshan26-Jul-15 2:30 
QuestionHow to find which DIV is selected and get selected DIV element values in jquery Pin
sr15924-Jul-15 0:37
sr15924-Jul-15 0:37 
AnswerRe: How to find which DIV is selected and get selected DIV element values in jquery Pin
Pete O'Hanlon24-Jul-15 1:03
mvePete O'Hanlon24-Jul-15 1:03 
Questioncheck data prior to insert Pin
Member 1185289422-Jul-15 8:04
Member 1185289422-Jul-15 8:04 
AnswerRe: check data prior to insert Pin
Michael_Davies22-Jul-15 8:41
Michael_Davies22-Jul-15 8:41 
AnswerRe: check data prior to insert Pin
Daniel Pfeffer22-Jul-15 9:23
professionalDaniel Pfeffer22-Jul-15 9:23 
I would say that you should separate the program into layers:

1. The User Layer handles user interactions.
2. The Business Layer validates the data and does any necessary processing.
3. The Data Layer stores the data in the database.

In this model, all validation should be done in the Business Layer.

Your code fragment mixes the layers; you have the Data Layer, you want to add validation (part of the Business Layer), and you also have the User Layer (in the last line).

IMO, the only validation that should be performed inside the database is inherent:

1. Unique indexes must be unique.
2. non-Null fields must be non-Null.
etc.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.

--Winston Churchill

QuestionJoining Multiple Tables SQL Query Problem Pin
ratchoy01021-Jul-15 22:16
ratchoy01021-Jul-15 22:16 
AnswerRe: Joining Multiple Tables SQL Query Problem Pin
Richard Deeming22-Jul-15 1:04
mveRichard Deeming22-Jul-15 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.