public void InsertLog(YunShanOA.Model.Log logModel) { if (logModel != null) { YunShanOA.DataAccess.Mapping.Log log = new Mapping.Log(); log.LogType = logModel.LogTypeID; log.LogContent = logModel.LogContext; log.UserName = logModel.userName; dc.Log.InsertOnSubmit(log); dc.SubmitChanges(); } }
public void InsertLog(YunShanOA.Model.Log logModel) { if (logModel != null) { YunShanOA.DataAccess.Mapping.Log log = new Mapping.Log(); log.LogType = logModel.LogTypeID; log.LogContent = logModel.LogContext; log.UserName = logModel.userName; dc.Log.InsertOnSubmit(log); dc.SubmitChanges(); } }