Suamere
Member
- Joined
- Aug 23, 2012
- Messages
- 11
- Programming Experience
- 5-10
When using Entity Framework, you create the database like an entity in your project. You can then do things more or less like:
Database.Table.Column = Value
SaveChanges
The assignment is direct, though. Opposed to this:
Property pValue As String
Get
End Get
Set(ByVal value as String)
If value = "something" _pValue = "something"
End Set
End Property
I want to be able to apply behind the scenes logic with database fields like properties, without having to hand-type 100 properties into a class as a middle-man to a database. The goal is to allow a person to add any database to the project and to have it work, or to make changes to their database and just require an Entity Framework "update edmx" or whatever and not have to change the class.
Database.Table.Column = Value
SaveChanges
The assignment is direct, though. Opposed to this:
Property pValue As String
Get
End Get
Set(ByVal value as String)
If value = "something" _pValue = "something"
End Set
End Property
I want to be able to apply behind the scenes logic with database fields like properties, without having to hand-type 100 properties into a class as a middle-man to a database. The goal is to allow a person to add any database to the project and to have it work, or to make changes to their database and just require an Entity Framework "update edmx" or whatever and not have to change the class.