var managementCount = from tbdocheader in context.tblDocumentHeaders
join tbDocRevision in context.tblDocumentRevisions
on tbdocheader.DocumentHeaderID equals tbDocRevision.DocumentHeaderID
select new { tbdocheader, tbDocRevision };
var query =(from obj in managementCount.AsEnumerable()
where Regex.IsMatch(obj.tbDocRevision.Revision, @"[A-Za-z]%")
select obj).Count();
I'm trying to get the records count where Revision starts with an alphabet."managementCount" query returns records with "Revision=A", but my query does not returns any matching records.
is something wrong with my regular expression?