Jul 07, 2010, 5:32 PM
[CLOSED] creating a custom class?
I rummaged around a bit between the forums and the examples, and couldn't really find anything relating to this - how exactly does one go about creating a custom class in Ext.Net that isn't just a quick derivation?
Assuming it's sensible, I'm looking to implement a custom data class that I can use to access the same information on both the server- and client-sides to store some relatively static user config data from a database. I can easily implement this in ExtJS, but then I can't tell what the next step for the server-side stuff should be. I could come up with something of my own design to take care of this, but I'd prefer to work within the framework as opposed to around it.
here's some pseudocode somewhat similar to the structure I need (I left a bunch of stuff out, but it's all the same concept)
Assuming it's sensible, I'm looking to implement a custom data class that I can use to access the same information on both the server- and client-sides to store some relatively static user config data from a database. I can easily implement this in ExtJS, but then I can't tell what the next step for the server-side stuff should be. I could come up with something of my own design to take care of this, but I'd prefer to work within the framework as opposed to around it.
here's some pseudocode somewhat similar to the structure I need (I left a bunch of stuff out, but it's all the same concept)
class userInfo {
id : int
firstName : string
lastName : string
location : string
locationNbr : int
permissions : store {
fields: {
id : int
name: string
create : bool
read : bool
update : bool
delete : bool
}
}
}
I guess I'm just looking for a shove in the right direction or an answer to the effect of "that's not how you should be thinking about solving that problem."
Last edited by geoffrey.mcgill; Jul 09, 2010 at 9:31 PM.