Exemplo n.º 1
0
        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);
        }