...
Our Location
includes string properties
Street
Number
City
String properties should be attributed to give dbschema.exe important clues on how these properties should be constrained in the database. After all,
domain objects can be persisted. What's more BOC controls also enforce those constraints.
...
For our Location
class this means that the Location
table will contain these columns:
Street
City
Country
ZipCode
- there won't be a
Number
column, because we renamed it; the column will be namedLocationNumber
Note that all properties here are virtual
. This is not an accident, this is a requirement, as explained here:
FIXME.
...