public virtual int InsertDataType(DataTypeRecord rec) { var @param = new { rec.Name, rec.SqlType, rec.BclType }; return(this.session.Insert( nameof(this.InsertDataType), @param)); }
private DataTypeRecord InsertDataType(string name, string sqlType, string bclType) { var rec = new DataTypeRecord { Name = name, SqlType = sqlType, BclType = bclType, }; rec.Id = this.repository.InsertDataType(rec); return(rec); }