google-code-export / dataobjectsdotnet

Automatically exported from code.google.com/p/dataobjectsdotnet
0 stars 0 forks source link

Operand type clash: uniqueidentifier is incompatible with int #826

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
using (var ss = Session.Open(DataServer.Domain))
{
    using (var tt = Transaction.Open())
    {
        string searchFor = "Wall-E";

        Code proxyCode = Codes.FileFormatType.ConcreteFormatType.MediaForge2ProxyV2File;
        Code mainTitleCode = Codes.TitleType.MainTitle;
        Code deleteCode = Codes.Status.MarkedForDeletion;

        var titles = from t in Query.All<Title>().Where(t => t.Value.Contains(searchFor) && t.TitleType == mainTitleCode)
         join vm in Query.All<VirtualMedia>() on t.Creation equals vm.Creation
         join cm in Query.All<ConcreteMedia>() on vm equals cm.VirtualMedia
         where
           cm.MediaFormat.Label == proxyCode &&
           !cm.Statuses.Any(st => st.StatusCode == deleteCode)
         select t;

        var error = titles.ToList();      <===== exception here
    }
}
What is the expected output? What do you see instead?

The absence of the exception

Original issue reported on code.google.com by Dmitri.Maximov on 7 Oct 2010 at 9:16

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by alex.yakunin on 13 Oct 2010 at 1:36

GoogleCodeExporter commented 9 years ago

Original comment by alexey.g...@gtempaccount.com on 13 Oct 2010 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by alexey.g...@gtempaccount.com on 19 Oct 2010 at 1:20