Click here to Skip to main content
15,909,645 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Seating Selection System Database Design Pin
hmrizin8-Jul-09 7:14
hmrizin8-Jul-09 7:14 
GeneralRe: Seating Selection System Database Design Pin
Eddy Vluggen8-Jul-09 10:56
professionalEddy Vluggen8-Jul-09 10:56 
GeneralRe: Seating Selection System Database Design Pin
hmrizin9-Jul-09 6:29
hmrizin9-Jul-09 6:29 
GeneralRe: Seating Selection System Database Design Pin
Eddy Vluggen9-Jul-09 6:40
professionalEddy Vluggen9-Jul-09 6:40 
GeneralRe: Seating Selection System Database Design Pin
hmrizin15-Jul-09 8:35
hmrizin15-Jul-09 8:35 
GeneralRe: Seating Selection System Database Design Pin
Eddy Vluggen15-Jul-09 11:04
professionalEddy Vluggen15-Jul-09 11:04 
QuestionStored Procedures Pin
CodingYoshi7-Jul-09 6:18
CodingYoshi7-Jul-09 6:18 
AnswerRe: Stored Procedures [modified] Pin
Eddy Vluggen7-Jul-09 8:48
professionalEddy Vluggen7-Jul-09 8:48 
You won't be limited to client-side searching if you avoid sprocs. Clientside searches can also be initiated from inline SQL.

CodingYoshi wrote:
Which option is better? How much business logic should we write on the db side--is there really any limit or convention?


There are several, some of them are being defended religiously. I'd recommend using dOOdads or LINQ.

dOOdads has the advantage that you can use the MyGeneration application to generate the framework and sprocs, and place the business-logic in the predefined BL-layer. For bonus-points, put the BL in it's own DLL.

LINQ has the advantages of simplicity and elegance.

--edit--

CodingYoshi wrote:
Employees who have worked on Tuesday at least 5 out of 9 weeks prior to DateX, and also worked day after DateX, and have worked more than 90 days in the past 12 months


These go by preferation in the database; if you decide to write another frontend (web, or a newly purchased control-library) then you'll already have your (by then already tested) BL in place. This also avoids duplication of the code.

You got multiple ways to implement this. From a trigger, using a RaiseError (with a low severity, or it will close the connection) to fire an event back to the UI. You could also use a sproc that returns a message or an error-id; I personally prefer to raise a non-severe error.

Those things that can't be caught in the conceptual model of the database go in the BL-layer of your application. Those are the BL-rules that state to send a twitter-message or shut down a remote workstation.

I'm curious to the other answers that will appear on this question Smile | :)

I are troll Smile | :)

modified on Wednesday, July 8, 2009 8:57 AM

GeneralRe: Stored Procedures Pin
CodingYoshi7-Jul-09 16:59
CodingYoshi7-Jul-09 16:59 
AnswerRe: Stored Procedures Pin
David Skelly9-Jul-09 2:54
David Skelly9-Jul-09 2:54 
AnswerRe: Stored Procedures Pin
Mycroft Holmes11-Jul-09 15:29
professionalMycroft Holmes11-Jul-09 15:29 
AnswerRe: Stored Procedures Pin
CodingYoshi13-Jul-09 17:05
CodingYoshi13-Jul-09 17:05 
QuestionORM tools in domain driven design? Pin
midix28-Jun-09 8:28
midix28-Jun-09 8:28 
AnswerRe: ORM tools in domain driven design? Pin
Eddy Vluggen7-Jul-09 9:15
professionalEddy Vluggen7-Jul-09 9:15 
QuestionFirst attempt at OOD: How do I extend my design? Pin
Mark McArthey18-Jun-09 3:07
Mark McArthey18-Jun-09 3:07 
AnswerRe: First attempt at OOD: How do I extend my design? Pin
Mark McArthey18-Jun-09 6:01
Mark McArthey18-Jun-09 6:01 
GeneralRe: First attempt at OOD: How do I extend my design? Pin
led mike22-Jun-09 6:41
led mike22-Jun-09 6:41 
AnswerRe: First attempt at OOD: How do I extend my design? Pin
CodingYoshi18-Jul-09 21:18
CodingYoshi18-Jul-09 21:18 
QuestionMVC Pattern question Pin
Quake2Player16-Jun-09 7:43
Quake2Player16-Jun-09 7:43 
AnswerRe: MVC Pattern question Pin
led mike16-Jun-09 11:48
led mike16-Jun-09 11:48 
GeneralRe: MVC Pattern question Pin
Quake2Player16-Jun-09 12:16
Quake2Player16-Jun-09 12:16 
GeneralRe: MVC Pattern question Pin
led mike17-Jun-09 4:50
led mike17-Jun-09 4:50 
AnswerRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 7:50
Leslie Sanford18-Jun-09 7:50 
GeneralRe: MVC Pattern question Pin
Quake2Player18-Jun-09 8:17
Quake2Player18-Jun-09 8:17 
GeneralRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 8:21
Leslie Sanford18-Jun-09 8:21 

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.