This question is locked. New answers and comments are not allowed.
Hi,
i have faced with the following issue:
in my domain class i have property with type UInt16 like that:
The sample project is posted here: http://yadi.sk/d/nOan4wtfJfmMd
Please help me to figure out why is it happening?
Thanks!
i have faced with the following issue:
in my domain class i have property with type UInt16 like that:
public
virtual
ushort
Property1
{
get
{
return
this
._property1;
}
set
{
this
._property1 = value;
}
}
however when running the following code, i am getting exception after saving the instance of value and accessing its UInt16 property like that:
EntitiesModel1 model =
new
EntitiesModel1(
"Server=127.0.0.1;Database=telerikorm;Uid=telerikorm;Pwd=telerikorm;"
);
Domain_class1 domain_class =
new
Domain_class1() { Property1 = 53464 };
model.Add(domain_class);
model.SaveChanges();
Console.WriteLine(
//DataStoreException was unhandled:
//Error executing query: System.OverflowException: Value was either too large or too small for an Int16.
domain_class.Property1.ToString()
);
Console.ReadKey();
The sample project is posted here: http://yadi.sk/d/nOan4wtfJfmMd
Please help me to figure out why is it happening?
Thanks!