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); }
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)); }