Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: Set datagrid cell value individually and dynamically Pin
Richard MacCutchan26-Dec-17 23:29
mveRichard MacCutchan26-Dec-17 23:29 
GeneralRe: Set datagrid cell value individually and dynamically Pin
Hervend26-Dec-17 23:35
Hervend26-Dec-17 23:35 
QuestionParentheses vs curly brackets Pin
User9874326-Dec-17 12:17
professionalUser9874326-Dec-17 12:17 
AnswerRe: Parentheses vs curly brackets Pin
Gerry Schmitz26-Dec-17 12:36
mveGerry Schmitz26-Dec-17 12:36 
GeneralRe: Parentheses vs curly brackets Pin
User9874326-Dec-17 12:54
professionalUser9874326-Dec-17 12:54 
GeneralRe: Parentheses vs curly brackets Pin
Gerry Schmitz26-Dec-17 12:57
mveGerry Schmitz26-Dec-17 12:57 
GeneralRe: Parentheses vs curly brackets Pin
User9874326-Dec-17 15:00
professionalUser9874326-Dec-17 15:00 
GeneralRe: Parentheses vs curly brackets Pin
BillWoodruff26-Dec-17 15:36
professionalBillWoodruff26-Dec-17 15:36 
GeneralRe: Parentheses vs curly brackets Pin
User9874326-Dec-17 17:59
professionalUser9874326-Dec-17 17:59 
GeneralRe: Parentheses vs curly brackets Pin
BillWoodruff27-Dec-17 19:40
professionalBillWoodruff27-Dec-17 19:40 
GeneralRe: Parentheses vs curly brackets Pin
User987432-Jan-18 23:13
professionalUser987432-Jan-18 23:13 
GeneralRe: Parentheses vs curly brackets Pin
Gerry Schmitz28-Dec-17 7:08
mveGerry Schmitz28-Dec-17 7:08 
GeneralRe: Parentheses vs curly brackets Pin
User987432-Jan-18 22:29
professionalUser987432-Jan-18 22:29 
GeneralRe: Parentheses vs curly brackets Pin
Gerry Schmitz3-Jan-18 5:13
mveGerry Schmitz3-Jan-18 5:13 
GeneralRe: Parentheses vs curly brackets Pin
Pete O'Hanlon26-Dec-17 22:26
mvePete O'Hanlon26-Dec-17 22:26 
AnswerRe: Parentheses vs curly brackets Pin
BillWoodruff26-Dec-17 15:31
professionalBillWoodruff26-Dec-17 15:31 
GeneralRe: Parentheses vs curly brackets Pin
User9874326-Dec-17 18:10
professionalUser9874326-Dec-17 18:10 
AnswerRe: Parentheses vs curly brackets Pin
Nathan Minier27-Dec-17 6:32
professionalNathan Minier27-Dec-17 6:32 
GeneralRe: Parentheses vs curly brackets Pin
User9874327-Dec-17 9:03
professionalUser9874327-Dec-17 9:03 
GeneralRe: Parentheses vs curly brackets Pin
Nathan Minier27-Dec-17 9:10
professionalNathan Minier27-Dec-17 9:10 
QuestionSerialize class with multiple different schemas Pin
hpjchobbes26-Dec-17 2:53
hpjchobbes26-Dec-17 2:53 
AnswerRe: Serialize class with multiple different schemas Pin
BillWoodruff26-Dec-17 5:25
professionalBillWoodruff26-Dec-17 5:25 
GeneralRe: Serialize class with multiple different schemas Pin
hpjchobbes27-Dec-17 3:20
hpjchobbes27-Dec-17 3:20 
GeneralRe: Serialize class with multiple different schemas Pin
Pete O'Hanlon27-Dec-17 4:05
mvePete O'Hanlon27-Dec-17 4:05 
AnswerRe: Serialize class with multiple different schemas Pin
jschell26-Dec-17 7:28
jschell26-Dec-17 7:28 
Serialization has nothing to do with functionality. It is solely about data. So it doesn't matter how you modify/update/create that data.


hpjchobbes wrote:
On a Delete request, I have to only supply the ID and the EditSequence fields


What you are referring to is generally about a 'difference'.

And it has nothing to do with the object itself.

The object represents a set of data and functionality associated with the data.

You are attempting to push functionality that involves a specific API and delivery of that data into the object itself. Bad idea.

What needs to happen is that the API layer (your code) needs to understand what it needs to deliver and then provide a way to do that. And not one that relies on the object to do it.

To provide a difference you MUST have two instances of the object. A before and an after. Then the API layer provides a way to either generally or specifically define the difference.

Be very careful in your design decision because a general approach ties one to the idea that ALL objects will be delivered using a difference. If there is even one exception then one must break the architecture to deal with it. Which is not the same an understanding that many objects, but not all, need to be handled with a difference.

One part of handling a difference also requires that one must be able to define the 'id'. That might not solely be one attribute. A general solution would require a way to recognize the specific attribute(s) that are the 'id'. That would either require metadata or hard coded by each object. One way, there ARE other ways, to provide the id is to require an interface on the the object that returns, as a string (generic solution) the id value.

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.