This question is locked. New answers and comments are not allowed.
Hi everyone,
I have a few questions/requests with regards to RIA.
(I'm evaluating different ORM's at the moment and the other guys are pushing for us to sign up but I would like to take a look/hear what OA has to say). (I don't know if this is the correct forum/thread to put this in either but any way) (Also my OA does not work very well at the moment so I can't test these things my self)
Questions about OA and RIA:
1. Will the client side Classes be modifiable? Or will they be in protect sealed classes? (OA has nice modifiable classes, but RIA has sealed internal classes, so I don't know how the two will end up) e.g. Are the entity classes partial-able or inheritable? (On the client side preferably)
e.g. If I wanted to have a new property that is the sum of two other properties.
Questions about OA vs ADO EF
2. Meta data generation.
Does OA plan to include a more useful code generator for the meta data?
My gripes with the EF are:
-[Include] attributes are not auto included. (Will OA include Include's where nececary? As you should already know if tables should be include from the reverse mapping) (I actually downloaded a tool to just stick include on everything to make my development time easier)
Questions about OA vs DevForce vs ADO
3a. DevForce generates it's entities with string max length limits (e.g. in nvarchar(50) its max length is 50). ADO does not. Will OA generate these limits? (For validation)
3b. DevForce generates an entityname In each entity class, which has constant strings with the entity names. (So you can use intellisense, instead of just "strings")
Question about OA
4. Generated Values on non generated columns
Can OA accept null values on non-nullable columns? (They get un-nulled by an instead of insert trigger)
(Or will I just have to keep passing junk values into my Insert's/Create's)
I need to have composite sequential ID's e.g.
1,1
1,2
1,3
2,1
2,2
2,3 etc.
(Legal requirement for invoice numbers.. apparently)
So I have my main data tables using GUID's, and a related table with an Instead of insert trigger, to generate the conditionally sequential ID's
This table to generate the sequential ID's is as follows
ParentId (GUID, PK, is the FK in a relation to the parent table, not nullable)
FirstNumber (Int or similar, not nullable)
SecondNumber (int or similar, not nullable)
My instead of insert trigger essentially turns an Insert(GUID, FirstNumber, <anything>) into the next sequential ID
Meaning that I will always be passing null as the second number
I have a few questions/requests with regards to RIA.
(I'm evaluating different ORM's at the moment and the other guys are pushing for us to sign up but I would like to take a look/hear what OA has to say). (I don't know if this is the correct forum/thread to put this in either but any way) (Also my OA does not work very well at the moment so I can't test these things my self)
Questions about OA and RIA:
1. Will the client side Classes be modifiable? Or will they be in protect sealed classes? (OA has nice modifiable classes, but RIA has sealed internal classes, so I don't know how the two will end up) e.g. Are the entity classes partial-able or inheritable? (On the client side preferably)
e.g. If I wanted to have a new property that is the sum of two other properties.
Questions about OA vs ADO EF
2. Meta data generation.
Does OA plan to include a more useful code generator for the meta data?
My gripes with the EF are:
-[Include] attributes are not auto included. (Will OA include Include's where nececary? As you should already know if tables should be include from the reverse mapping) (I actually downloaded a tool to just stick include on everything to make my development time easier)
Questions about OA vs DevForce vs ADO
3a. DevForce generates it's entities with string max length limits (e.g. in nvarchar(50) its max length is 50). ADO does not. Will OA generate these limits? (For validation)
3b. DevForce generates an entityname In each entity class, which has constant strings with the entity names. (So you can use intellisense, instead of just "strings")
Question about OA
4. Generated Values on non generated columns
Can OA accept null values on non-nullable columns? (They get un-nulled by an instead of insert trigger)
(Or will I just have to keep passing junk values into my Insert's/Create's)
I need to have composite sequential ID's e.g.
1,1
1,2
1,3
2,1
2,2
2,3 etc.
(Legal requirement for invoice numbers.. apparently)
So I have my main data tables using GUID's, and a related table with an Instead of insert trigger, to generate the conditionally sequential ID's
This table to generate the sequential ID's is as follows
ParentId (GUID, PK, is the FK in a relation to the parent table, not nullable)
FirstNumber (Int or similar, not nullable)
SecondNumber (int or similar, not nullable)
My instead of insert trigger essentially turns an Insert(GUID, FirstNumber, <anything>) into the next sequential ID
Meaning that I will always be passing null as the second number