/// <summary>
 /// Create a new OperateLog object.
 /// </summary>
 /// <param name="operateLogId">Initial value of the OperateLogId property.</param>
 /// <param name="operateType">Initial value of the OperateType property.</param>
 /// <param name="operate">Initial value of the Operate property.</param>
 /// <param name="targetId">Initial value of the TargetId property.</param>
 /// <param name="operateUser">Initial value of the OperateUser property.</param>
 /// <param name="operateTime">Initial value of the OperateTime property.</param>
 /// <param name="operateDesc">Initial value of the OperateDesc property.</param>
 public static OperateLog CreateOperateLog(global::System.Int32 operateLogId, global::System.Int32 operateType, global::System.Int32 operate, global::System.Int32 targetId, global::System.String operateUser, global::System.DateTime operateTime, global::System.String operateDesc)
 {
     OperateLog operateLog = new OperateLog();
     operateLog.OperateLogId = operateLogId;
     operateLog.OperateType = operateType;
     operateLog.Operate = operate;
     operateLog.TargetId = targetId;
     operateLog.OperateUser = operateUser;
     operateLog.OperateTime = operateTime;
     operateLog.OperateDesc = operateDesc;
     return operateLog;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the OperateLogSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOperateLogSet(OperateLog operateLog)
 {
     base.AddObject("OperateLogSet", operateLog);
 }
        private void CreateLog(OperateType_Enum type, Operate_Enum operate, int targetid, string desc)
        {
            OperateLog log = new OperateLog();
            log.OperateTypeEnum = type;
            log.OperateEnum = operate;
            log.TargetId = targetid;
            log.OperateDesc = desc;

            OperateLogs.Add(log);

            log.UpdateOperater();
        }