/// <summary> /// Deprecated Method for adding a new object to the UserLogs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserLogs(UserLog userLog) { base.AddObject("UserLogs", userLog); }
/// <summary> /// Create a new UserLog object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="role">Initial value of the Role property.</param> /// <param name="loginDate">Initial value of the LoginDate property.</param> /// <param name="logoutDate">Initial value of the LogoutDate property.</param> public static UserLog CreateUserLog(global::System.String userId, global::System.String name, global::System.String role, global::System.DateTime loginDate, global::System.DateTime logoutDate) { UserLog userLog = new UserLog(); userLog.UserId = userId; userLog.Name = name; userLog.Role = role; userLog.LoginDate = loginDate; userLog.LogoutDate = logoutDate; return userLog; }