开发者

What is a model.cs file?

What is a model.cs file?

What is a model.cs file?

T开发者_JAVA百科his appears in a project I am sharing with other dev's. What is a model.cs file?


It is a ViewModel Pattern in Silverlight using Behaviors.

Read this thread MVVM.


In the MVVM pattern, it is common to name the model layer objects in a way that the name reflects the actual usage of the object. The name "model" by itself is often used as an example (to underline the architecture layer to which the object bearing it belongs) but in real world, the model classes contain the business logic of the application and will be named in wildly varied ways.

That said, it could be an auto-generated file/class which is uniquely identified by its namespace instead of the actual name. This is not a bad approach for auto-generated tools but it hinders readability for human coders, should they need to manipulate the objects in question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜