EDN Admin
Well-known member
Dear all,
I have a DataFeed module which is standard and connect to different type of WebService in RealEstate market.<br/>
The dataFeed module is independant on the webservice it is connected to, the only thing it does is downloading data to an XML document wich is then parse into a model.
I am facing to the fact that I have setup a Standard database model in which data will be stored. This database should cover any RealEstate data. Then based on data provider I have a specific module which makes the binding between XML entry and the model.So
storage works quite well.
Now my issue is coming more to the View model which I try to be standard base on certain field on database.
For instance I want to always display for a Property fields : Price, Area, Square meter, information
Depending on where the data how are data gets named in the database, I need to be sure to point to correct database entry to display the same information based on whatever datafeed source.
So in other word I need to build a kind of mapping logic between the View and the model as bellow :
<img alt="" height="133" src="http://social.msdn.microsoft.com/Forums/getfile/181992" width="462
The idea from picture below is the left side represent the standard interface, the center is a standard maping module, the right side is the RealEstate database which structure can change based on the customer. So in order to get the corresponding field
displayed in the different text box, I need to set up this mapping function in order that whatever the database will be behind I will be able to show same type of information.
So far with a predifine database A, I am using ADO.Net EF to build the model based on the database.
Does i mean I will have to create a unique EF model for each database I have ?
In an ideal word I should be able to make the mapping without changing a line of code after I have define the rules and then simply the database will change. I could imagine a separate mapping configuration tool for doing that but not sure on the way to
go
Any advise our to perform this ? <hr class="sig Your knowledge is enhanced by that of others.
View the full article
I have a DataFeed module which is standard and connect to different type of WebService in RealEstate market.<br/>
The dataFeed module is independant on the webservice it is connected to, the only thing it does is downloading data to an XML document wich is then parse into a model.
I am facing to the fact that I have setup a Standard database model in which data will be stored. This database should cover any RealEstate data. Then based on data provider I have a specific module which makes the binding between XML entry and the model.So
storage works quite well.
Now my issue is coming more to the View model which I try to be standard base on certain field on database.
For instance I want to always display for a Property fields : Price, Area, Square meter, information
Depending on where the data how are data gets named in the database, I need to be sure to point to correct database entry to display the same information based on whatever datafeed source.
So in other word I need to build a kind of mapping logic between the View and the model as bellow :
<img alt="" height="133" src="http://social.msdn.microsoft.com/Forums/getfile/181992" width="462
The idea from picture below is the left side represent the standard interface, the center is a standard maping module, the right side is the RealEstate database which structure can change based on the customer. So in order to get the corresponding field
displayed in the different text box, I need to set up this mapping function in order that whatever the database will be behind I will be able to show same type of information.
So far with a predifine database A, I am using ADO.Net EF to build the model based on the database.
Does i mean I will have to create a unique EF model for each database I have ?
In an ideal word I should be able to make the mapping without changing a line of code after I have define the rules and then simply the database will change. I could imagine a separate mapping configuration tool for doing that but not sure on the way to
go
Any advise our to perform this ? <hr class="sig Your knowledge is enhanced by that of others.
View the full article