コード例 #1
0
        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()));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }