public bool FieldExists(ConnectionModel connectionModel, string instrumentName, string serverParkName, FieldNameType fieldNameType) { var dataModel = _dataModelService.GetDataModel(connectionModel, instrumentName, serverParkName); var definitionScope = (IDefinitionScope2)dataModel; return(definitionScope.FieldExists(fieldNameType.FullName())); }
public IDataRecord GetDataRecord(ConnectionModel connectionModel, string primaryKeyValue, string instrumentName, string serverParkName) { var dataModel = _dataModelService.GetDataModel(connectionModel, instrumentName, serverParkName); var primaryKey = _keyService.GetPrimaryKey(dataModel); _keyService.AssignPrimaryKeyValue(primaryKey, primaryKeyValue); return(_dataRecordService.GetDataRecord(connectionModel, primaryKey, instrumentName, serverParkName)); }
public IEnumerable <string> GetSurveyModes(ConnectionModel connectionModel, string instrumentName, string serverParkName) { var dataModel = _dataModelService.GetDataModel(connectionModel, instrumentName, serverParkName) as IDatamodel2; return(dataModel == null ? new List <string>() : dataModel.Modes.Select(dm => dm.Name)); }