示例#1
0
        private StyleRecord InsertStyle(Req req)
        {
            var rec = new StyleRecord
            {
                FeatureTypeId  = req.FeatureTypeId,
                AttributeIndex = req.AttributeIndex,
                StyleTypeId    = req.StyleTypeId,
                Name           = req.Name,
            };

            rec.Id = this.repository.InsertStyle(rec);
            return(rec);
        }
示例#2
0
        public virtual int InsertStyle(StyleRecord rec)
        {
            var @param = new
            {
                rec.FeatureTypeId,
                rec.AttributeIndex,
                rec.StyleTypeId,
                rec.Name,
            };

            return(this.session.Insert(
                       nameof(this.InsertStyle),
                       @param));
        }