Beispiel #1
0
        public virtual int InsertDataSet(DataSetRecord rec)
        {
            var @param = new { rec.PlotId, rec.FeatureTypeId, rec.Name, rec.DateCreated };

            return(this.session.Insert(
                       nameof(this.InsertDataSet),
                       @param));
        }
Beispiel #2
0
        private DataSetRecord InsertDataSet(
            int plotId,
            int featureTypeId,
            string name,
            DateTime dateCreated)
        {
            var rec = new DataSetRecord
            {
                PlotId        = plotId,
                Name          = name,
                FeatureTypeId = featureTypeId,
                DateCreated   = dateCreated,
            };

            rec.Id = this.repository.InsertDataSet(rec);
            return(rec);
        }