示例#1
0
 public T Add(T entity, long createdBy = 0)
 {
     entity.SetCreatedBy(createdBy);
     entity.SetCreateDateTime();
     return(_context.Set <T>()
            .Add(entity)
            .Entity);
 }