public virtual T Insert(T model) { var creationTime = model.GetType().GetProperty("CreationTime"); creationTime?.SetValue(model, DateTime.Now); DbDapper.Insert <T>(model, DbConnection, DbTransaction); return(model); }
public virtual T Insert(T model) { var creationTime = model.GetType().GetProperty("CreationTime"); creationTime?.SetValue(model, DateTime.Now); DbDapper.Insert <T>(model, DbConnection, DbTransaction); return(model); }