c# - Generic Model Representations In ASP.NET MVC -


I changed into a high reusable trying to implement Web systems have the model will source data It is possible that whatever I need is a normal type rather than depending on type generated by LINQ or entities.

Highly different for reusability, but what happens if the data between institutions and LINQ ever changes a bit? Then you have to change the scene. Are LINQs and the classes generated by the institutions are guaranteed to be the same when they go to the scene? Is it possible to create a class / interface that normally represents data?

Example

  Namespace Intranet.Eres.account. Using VisualModels {Intranet.Areas.Accounts; Using System.Collections.Generic; Intranet.resus.account Using Models; Get Snvidasnyantradrishy data public category (public Aianinmerebl & lt; Agreement & gt; contracts {; set;} public IEnumerable & lt; tblCC_Contract_CC & Get gt; TblCC_Contract_CCs {; set;} public IEnumerable & lt; tblCC_Contract_Data_Terminal & gt; TblCC_Contract_Data_Terminals get {; set;} public IEnumerable & lt; tblCC_CDT_Data_Service & get gt; TblCC_CDT_Data_Services {get; set;} public IEnumerable & lt; tblCC_Data_Service & gt; TblCC_Data_Services {; set;}}}  

I am testing the above code That is taken from a small project. Note that I have "tbl to the Start" I have them pulled on LINQ designer from a database and I have several results on the screen that I'm using in this container set sent to after submission.

issue is that if I did the LINQ and instead use institutions do, what data is still Likewise Will the pictures be shown as shown here? Will contract still be valid? Keep in mind that in the previous code example these types are generated by LINQ. If you use a different Data Access technology, then how relevant are they?

That's why I wonder for us to separate concerns, and instead of stability data,

habitually

If you do not create a class, then you can be close to a datatelle, datarov or even a name enhancement? Your object must include the schema as part of its own and the archive will be repeated on the collection (archives).


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -