new beta 4.90 issue
Posted: Wed 03 Mar 2010 18:58
So.
how to reproduce issue:
create table ytrewqs
id|Name
1 |One
2 |Two
3 |Three
using version 4.65 and it's standard c# templates create model from database with this table
write, compile and run this
after that uninstall 4.65 and install 4.90
check referencies and without code regeneration run code. result is as expected;
then recreate model from database and again run this code. entities.Count() in both lines returns 2.
if rewrite code like this
result will be as expected. please check this. same thing with 4.75
BTW. The templates from 4.65 incompatible to 4.90
how to reproduce issue:
create table ytrewqs
id|Name
1 |One
2 |Two
3 |Three
using version 4.65 and it's standard c# templates create model from database with this table
write, compile and run this
Code: Select all
var context = new TestDataContext();
var notin = new List {1};
var entities = context.ytrewqs.Where(o=> !notin.Contains(o.id));
Console.WriteLine(entities.Count());//result 2
notin.Add(2);
Console.WriteLine(entities.Count());//result 1
check referencies and without code regeneration run code. result is as expected;
then recreate model from database and again run this code. entities.Count() in both lines returns 2.
if rewrite code like this
Code: Select all
var context = new TestDataContext();
var notin = new List {1};
var entities = context.ytrewqs.Where(o=> !notin.Contains(o.id));
Console.WriteLine(entities.Count());//result 2
var notin = new List {1,2};
var entities = context.ytrewqs.Where(o=> !notin.Contains(o.id));
Console.WriteLine(entities.Count());//result 1
BTW. The templates from 4.65 incompatible to 4.90