entities changed to C# style