i have scenario need use tabular data unlikely change helps implement business logic:
table   parent      child         relationship      allowed              b                 c            true   b                            c            false each row represent business rule. based on table need populate dropdown control contents of "relationship" column. can have sort of data structure within c# store tabular data, or need use a database table?
unless need persist data across sessions, don't need store in database table. perspective of object oriented design, why not make object, , therefore class, represents structure need. this:
public class relationship {     public string name { get; set; }     public string parent { get; set; }     public string child { get; set; }     public bool allowed { get; set; } } note of course i'm using strings might want use further objects of own 'type'. additionally, keep in mind access, , should , shouldn't allowed access these properties... example intentionally simple @ point!
Comments
Post a Comment