Esempio n. 1
0
        public override void Configure(INancyEnvironment environment)
        {
            base.Configure(environment);

            Dapper.DefaultTypeMap.MatchNamesWithUnderscores = true;

            environment.Json(retainCasing: true);
            environment.Views(
                runtimeViewUpdates: true,
                runtimeViewDiscovery: true
                );
            environment.Tracing(
                enabled: true,
                displayErrorTraces: true
                );
        }
 public override void Configure(INancyEnvironment environment)
 {
     environment.Json(retainCasing: true);
     base.Configure(environment);
 }
Esempio n. 3
0
 public override void Configure(INancyEnvironment environment)
 {
     environment.Json(serializeEnumToString: true);
 }