Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
QuestionDELPHİ7 prepared project. NET How Can I Keep Pin
ibrahim_2615-Aug-09 0:11
ibrahim_2615-Aug-09 0:11 
QuestionRe: DELPHİ7 prepared project. NET How Can I Keep Pin
OriginalGriff15-Aug-09 5:40
mveOriginalGriff15-Aug-09 5:40 
AnswerRe: DELPHİ7 prepared project. NET How Can I Keep Pin
Dave Kreskowiak15-Aug-09 6:47
mveDave Kreskowiak15-Aug-09 6:47 
QuestionAutomate processing without button click? Pin
spankyleo12315-Aug-09 0:03
spankyleo12315-Aug-09 0:03 
AnswerRe: Automate processing without button click? Pin
Henry Minute15-Aug-09 0:37
Henry Minute15-Aug-09 0:37 
GeneralRe: Automate processing without button click? Pin
spankyleo12315-Aug-09 2:05
spankyleo12315-Aug-09 2:05 
GeneralRe: Automate processing without button click? Pin
spankyleo12317-Aug-09 7:43
spankyleo12317-Aug-09 7:43 
QuestionSetting an object public property, protected by a security check Pin
pierpaolo paparo14-Aug-09 21:56
pierpaolo paparo14-Aug-09 21:56 
Hi,

I have an object that performe a security check before setting a property

Class Issue

string _status
string Status {

set {

if (Value == "urgent" && current.User.IsManager)
_status = "urgent"
else
throw exception

}

get { return _status}

}


The problem arise when I just need to fill the status property from data coming from the Database.
Is there any proper OO way to leave the business logic in the object while allowing at least the db layer to fill this proerty?
At the moment, I have a IssueManager that is responsible to execture CRUD methods on the DB on behalf of Issue.



Thanks
AnswerRe: Setting an object public property, protected by a security check Pin
Mycroft Holmes14-Aug-09 23:06
professionalMycroft Holmes14-Aug-09 23:06 
GeneralRe: Setting an object public property, protected by a security check Pin
pierpaolo paparo14-Aug-09 23:53
pierpaolo paparo14-Aug-09 23:53 
GeneralRe: Setting an object public property, protected by a security check Pin
Mycroft Holmes15-Aug-09 0:39
professionalMycroft Holmes15-Aug-09 0:39 
AnswerRe: Setting an object public property, protected by a security check Pin
Adam Maras14-Aug-09 23:47
Adam Maras14-Aug-09 23:47 
GeneralRe: Setting an object public property, protected by a security check Pin
pierpaolo paparo14-Aug-09 23:54
pierpaolo paparo14-Aug-09 23:54 
GeneralRe: Setting an object public property, protected by a security check Pin
Adam Maras14-Aug-09 23:59
Adam Maras14-Aug-09 23:59 
AnswerRe: Setting an object public property, protected by a security check Pin
PIEBALDconsult15-Aug-09 4:24
mvePIEBALDconsult15-Aug-09 4:24 
Questionabout the hashtable remove Pin
elvis_pan14-Aug-09 16:12
elvis_pan14-Aug-09 16:12 
AnswerRe: about the hashtable remove Pin
Luc Pattyn14-Aug-09 16:53
sitebuilderLuc Pattyn14-Aug-09 16:53 
QuestionPInvoke, varaible length arrays [Solved] Pin
DaveyM6914-Aug-09 11:29
professionalDaveyM6914-Aug-09 11:29 
AnswerRe: PInvoke, varaible length arrays [modified] Pin
Pete O'Hanlon14-Aug-09 11:44
mvePete O'Hanlon14-Aug-09 11:44 
GeneralRe: PInvoke, varaible length arrays Pin
Luc Pattyn14-Aug-09 11:53
sitebuilderLuc Pattyn14-Aug-09 11:53 
GeneralRe: PInvoke, varaible length arrays Pin
Pete O'Hanlon14-Aug-09 11:57
mvePete O'Hanlon14-Aug-09 11:57 
GeneralRe: PInvoke, varaible length arrays Pin
DaveyM6914-Aug-09 12:15
professionalDaveyM6914-Aug-09 12:15 
AnswerRe: PInvoke, varaible length arrays Pin
Luc Pattyn14-Aug-09 11:46
sitebuilderLuc Pattyn14-Aug-09 11:46 
GeneralRe: PInvoke, varaible length arrays Pin
Pete O'Hanlon14-Aug-09 11:54
mvePete O'Hanlon14-Aug-09 11:54 
GeneralRe: PInvoke, varaible length arrays Pin
Luc Pattyn14-Aug-09 11:56
sitebuilderLuc Pattyn14-Aug-09 11:56 

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.