public AttributeDatum <double> GetNumericAttributeDatum(ConfigFileModel item) { var sqlConnection = new SqlConnection(item.Connection.UserName, item.Connection.Password, item.Connection.Server, item.Connection.DataSource); var numericAttribute = new NumericAttribute(item.AttributeName, sqlConnection, Convert.ToDouble(item.DefaultValue), item.Maximum, item.Minimum); var sectionLocation = new SectionLocation("I dont know yet"); var numericAttributeDatum = new AttributeDatum <double>(numericAttribute, 5, sectionLocation, DateTime.Now); return(numericAttributeDatum); }
public Segment(Location segmentLocation, AttributeDatum <T> segmentationAttributeDatum) { Location = segmentLocation; SegmentationAttributeDatum = segmentationAttributeDatum; }