public void Insert(SmartOcr smartOcr) { using (var context = new SMARTEntities()) { context.SmartOcr_InsertUpdate("I", smartOcr.ServiceName, smartOcr.MessageId, smartOcr.RequestId, smartOcr.Message, smartOcr.Status); } }
public object Select(SmartOcr smartOcr) { using (var context = new SMARTEntities()) { return(context.SmartOcrByRequestId_Select(smartOcr.RequestId).FirstOrDefault()); } }