示例#1
0
 // Default contructor that set entity to field
 public aspnet_ProfileModel(aspnet_Profile aspnet_profile)
 {
     this._aspnet___profile = aspnet_profile;
     this._user_id = aspnet_profile.UserId;
     this._property_names = aspnet_profile.PropertyNames;
     this._property_values_string = aspnet_profile.PropertyValuesString;
     this._property_values_binary = aspnet_profile.PropertyValuesBinary;
     this._last_updated_date = aspnet_profile.LastUpdatedDate;
     this._originalaspnet_Profile = aspnet_profile.DeepClone();
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the aspnet_Profile EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToaspnet_Profile(aspnet_Profile aspnet_Profile)
 {
     base.AddObject("aspnet_Profile", aspnet_Profile);
 }
示例#3
0
 // Default contructor
 public aspnet_ProfileModel()
 {
     this.IsNewItem = true;
     this._aspnet___profile = new aspnet_Profile();
 }
示例#4
0
 /// <summary>
 /// Create a new aspnet_Profile object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="propertyNames">Initial value of the PropertyNames property.</param>
 /// <param name="propertyValuesString">Initial value of the PropertyValuesString property.</param>
 /// <param name="propertyValuesBinary">Initial value of the PropertyValuesBinary property.</param>
 /// <param name="lastUpdatedDate">Initial value of the LastUpdatedDate property.</param>
 public static aspnet_Profile Createaspnet_Profile(global::System.Guid userId, global::System.String propertyNames, global::System.String propertyValuesString, global::System.Byte[] propertyValuesBinary, global::System.DateTime lastUpdatedDate)
 {
     aspnet_Profile aspnet_Profile = new aspnet_Profile();
     aspnet_Profile.UserId = userId;
     aspnet_Profile.PropertyNames = propertyNames;
     aspnet_Profile.PropertyValuesString = propertyValuesString;
     aspnet_Profile.PropertyValuesBinary = propertyValuesBinary;
     aspnet_Profile.LastUpdatedDate = lastUpdatedDate;
     return aspnet_Profile;
 }
 // Delete a existed aspnet_Profile
 public void Deleteaspnet_Profile(aspnet_Profile _aspnet_Profile)
 {
     unitOfWork.Delete<aspnet_Profile>(_aspnet_Profile);
 }
 // Add a new aspnet_Profile
 public aspnet_Profile Addaspnet_Profile(aspnet_Profile _aspnet_Profile)
 {
     unitOfWork.Add<aspnet_Profile>(_aspnet_Profile);
     return _aspnet_Profile;
 }
 // Update a existed aspnet_Profile
 public aspnet_Profile Updateaspnet_Profile(aspnet_Profile _aspnet_Profile)
 {
     unitOfWork.Update<aspnet_Profile>(_aspnet_Profile);
     return _aspnet_Profile;
 }
 // Refresh an existed aspnet_Profile
 public aspnet_Profile Refeshaspnet_Profile(aspnet_Profile _aspnet_Profile)
 {
     unitOfWork.Refresh<aspnet_Profile>(_aspnet_Profile);
     return _aspnet_Profile;
 }