using System.Collections;
using System.Collections.Generic;
public static void Main()
DBRepo _dbRepo = new DBRepo();
_dbRepo.ColumnOne = "1,2,3,5,6,7,17";
var resultMatch = _dbRepo.ColumnOne.Split(',').Contains("7");
DBRepo _dbRepoNotMatch = new DBRepo();
_dbRepoNotMatch.ColumnOne = "1,2,3,5,6,7,17";
var resultNotMatch = _dbRepoNotMatch.ColumnOne.Split(',').Contains("7");
Console.WriteLine($"Result match for {_dbRepo.ColumnOne} is {resultMatch}\nResult not match for {_dbRepoNotMatch.ColumnOne} is {resultNotMatch}");
public string ColumnOne { get; set; }