- 博客(1)
- 资源 (22)
- 收藏
- 关注
原创 EF 中获取 TableAttribute的值,即数据库中真实的表名
比如EF中我定义了这样一个实体: [Table(Name = "MyTableName")] public class MyClass { } 现我想获取 MyTableName,可以这样来办: using System.Data.Linq.Mapping;namespace MyEF{ class Program
2013-03-07 09:47:54 8624
MVVM Demo for WPF
Introduction
Having helped alot of people on the MSDN Forum in the WPF section, I tend to see alot of people who fail to exploit the benefits of DataBinding in WPF, and not enough people are aware of the benefits of the MVVM pattern, which will be the main purpose of this lesson. To learn how to setup a basic MVVM pattern for an application.
What is MVVM ?
MVVM stands for :
•Model
•View
•ViewModel
Model - The model is an object model. In this case a class called Employee.
View - The view is the UI ( User Interface ), which creates a visualization of the objects in the ViewModel, in this case MainWindow.xaml
ViewModel - The ViewModel will be the layer in this application that handles all the logic and the Employee objects, this is the layer that the View will DataBind to.
2012-03-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人