public void Create(TEntity entity) { entity.Id = Guid.NewGuid(); var uow = provider.GetUnitOfWorkInstance() as PetaPocoUnitOfWork; uow.RegisterEntityToInsert(entity); }
public void Create(TEntity entity) { entity.Id = Guid.NewGuid(); var uow = provider.GetUnitOfWorkInstance() as PetaPocoUnitOfWork; uow.RegisterEntityToInsert(entity); }