This question is locked. New answers and comments are not allowed.
Hi,
I'm searching for best ORM for my project. I'd like to ask few questions about features of Open Access (OA) ORM.
1. Does OA support create/update database schema ?
- our project will support many databases (same schema different data) created by users on demand. ORM should support this option.
- when user will install new software version with modified database schema, ORM should support updateing existing databases.
2. Does OA support custom data types, especially composite data types? Example:
//our custom composite type
struct Quantity {
public double Value {get;set;} //in database this maps to field XXXValue (type float) where XXX is name of the property
public string ValueName {get; set;} //in database this maps to field XXXValueName (type varchar(50) - of course "50" is an example
}
//property in some object
class SomeObject {
public Quantity OrderValue {get;set;} //in database this property maps to fields: OrderValueValue (type float) and OrderValueValueName (type varchar(50))
public Quantity Stock {get;set;} //in database this maps to fields: StockValue (type float) and StockValueName (type varchar(50))
}
3. Does OA support interface data types? Example: we have few different objects that implement ISomeInterface. These objects are stored in different tables each. Now, we have some other object that have property of type ISomeInterface. Something like this:
class ObjectA: ISomeInterface {} // mapped to table ObjectATable
class ObjectB: ISomeInterface {} // mapped to table ObjectBTable
... etc
class SomeObject {
public ISomeInterface SomeInterface {get; set;} // mapped to something like SomeInterfaceObjectType or SomeInterfaceTableName field and SomeInterfaceID. Of course all objects should have ID fields of same type ID
}
I'm searching for best ORM for my project. I'd like to ask few questions about features of Open Access (OA) ORM.
1. Does OA support create/update database schema ?
- our project will support many databases (same schema different data) created by users on demand. ORM should support this option.
- when user will install new software version with modified database schema, ORM should support updateing existing databases.
2. Does OA support custom data types, especially composite data types? Example:
//our custom composite type
struct Quantity {
public double Value {get;set;} //in database this maps to field XXXValue (type float) where XXX is name of the property
public string ValueName {get; set;} //in database this maps to field XXXValueName (type varchar(50) - of course "50" is an example
}
//property in some object
class SomeObject {
public Quantity OrderValue {get;set;} //in database this property maps to fields: OrderValueValue (type float) and OrderValueValueName (type varchar(50))
public Quantity Stock {get;set;} //in database this maps to fields: StockValue (type float) and StockValueName (type varchar(50))
}
3. Does OA support interface data types? Example: we have few different objects that implement ISomeInterface. These objects are stored in different tables each. Now, we have some other object that have property of type ISomeInterface. Something like this:
class ObjectA: ISomeInterface {} // mapped to table ObjectATable
class ObjectB: ISomeInterface {} // mapped to table ObjectBTable
... etc
class SomeObject {
public ISomeInterface SomeInterface {get; set;} // mapped to something like SomeInterfaceObjectType or SomeInterfaceTableName field and SomeInterfaceID. Of course all objects should have ID fields of same type ID
}