示例#1
0
        public bool TryInInfoItemSource(string iiid, out MongoInfoItem infoItem)
        {
            FilterDefinition <MongoInfoItem> filter = Builders <MongoInfoItem> .Filter.And(
                Builders <MongoInfoItem> .Filter.Eq(t => t.IIid, iiid));

            infoItem = _access.GetOne(filter);
            return(infoItem == null ? false : true);
        }
示例#2
0
        public bool TryInInfoItemSource(SRC2 s, out MongoInfoItem infoItem)
        {
            FilterDefinition <MongoInfoItem> filter = Builders <MongoInfoItem> .Filter.And(
                Builders <MongoInfoItem> .Filter.Eq(t => t.Usage.SRC.AdapterId, s.AdapterId),
                Builders <MongoInfoItem> .Filter.Eq(t => t.Usage.SRC.DataType, s.DataType),
                Builders <MongoInfoItem> .Filter.Eq(t => t.Usage.SRC.NatureKey, s.NatureKey));

            infoItem = _access.GetOne(filter);
            return(infoItem == null ? false : true);
        }