15
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
int x = 10, y = 100;
8
9
string result = x > y ? "x is greater than y"
10
: x < y ? "x is less than y"
11
: x == y ? "x is equal to y" : "No result";
12
13
Console.WriteLine(result);
14
}
15
}
Cached Result
Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Data.Entity.DbContext' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Z.EntityFramework.Classic.EntityFrameworkManager' threw an exception.
---> System.TypeInitializationException: The type initializer for '' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Z.Expressions.CompilerManager..cctor()
at Z.Expressions.CompilerManager.LoadEntityFrameworkClassicConfiguration()
at Z.Expressions.ExceptionMessage.ThrowLicenseException()
at ..cctor()
--- End of inner exception stack trace ---
at .()
at Z.EntityFramework.Classic.EntityFrameworkManager..cctor()
--- End of inner exception stack trace ---
at Z.EntityFramework.Classic.EntityFrameworkManager.Initialize()
at System.Data.Entity.DbContext..cctor()
--- End of inner exception stack trace ---
at System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
at Program.EntityContext..ctor()
at Program.SeedEmployee()
at Program.Main()
Command terminated by signal 6
---> System.TypeInitializationException: The type initializer for 'Z.EntityFramework.Classic.EntityFrameworkManager' threw an exception.
---> System.TypeInitializationException: The type initializer for '' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Z.Expressions.CompilerManager..cctor()
at Z.Expressions.CompilerManager.LoadEntityFrameworkClassicConfiguration()
at Z.Expressions.ExceptionMessage.ThrowLicenseException()
at ..cctor()
--- End of inner exception stack trace ---
at .()
at Z.EntityFramework.Classic.EntityFrameworkManager..cctor()
--- End of inner exception stack trace ---
at Z.EntityFramework.Classic.EntityFrameworkManager.Initialize()
at System.Data.Entity.DbContext..cctor()
--- End of inner exception stack trace ---
at System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
at Program.EntityContext..ctor()
at Program.SeedEmployee()
at Program.Main()
Command terminated by signal 6