求助:MVC更新数据库的问题
我在使用MVC构建网站时,使用EntityFramework将数据库表生成相应的View与Controller
[EdmEntityTypeAttribute(NamespaceName="WebSiteModel", Name="Manager")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Manager : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Manager object.
/// </summary>
public static Manager CreateManager(global::System.String userID, global::System.String passwd, global::System.String remark)
{
Manager manager = new Manager();
manager.UserID = userID;
manager.Passwd = passwd;
manager.Remark = remark;
return manager;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String UserID
{
get
{
return _UserID;
}
set
{
OnUserIDChanging(value);
ReportPropertyChanging("UserID");
_UserID = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("UserID");
OnUserIDChanged();
}
}
private global::System.String&