Ejemplo n.º 1
0
        public void CreateRecord(ServiceRequestModel request)
        {
            request.id = Guid.NewGuid();
            var response = _serviceRequestContext.servicerequest.Add(request);

            _serviceRequestContext.SaveChanges();
        }
Ejemplo n.º 2
0
        private void Seed()
        {
            using (var context = new ServiceRequestContext())
            {
                context.Database.EnsureDeleted();
                context.Database.EnsureCreated();

                context.SaveChanges();
            }
        }