IcyIme
IcyIme
CC#
Created by IcyIme on 6/26/2024 in #help
i want to migrate db from sqlserver to supabase(postressql) but i have error with entitity framework
No description
3 replies
CC#
Created by IcyIme on 6/26/2024 in #help
i want to migrate db from sqlserver to supabase(postressql) but i have error with entitity framework
problem fixed u must switch from transaction mode to session mode
3 replies
CC#
Created by IcyIme on 6/23/2024 in #help
i migrating from sqlserver to mongo db but in login the page throeing an errror ExpressionNotSupport
okay thanks
16 replies
CC#
Created by IcyIme on 6/23/2024 in #help
i migrating from sqlserver to mongo db but in login the page throeing an errror ExpressionNotSupport
i know
16 replies
CC#
Created by IcyIme on 6/23/2024 in #help
i migrating from sqlserver to mongo db but in login the page throeing an errror ExpressionNotSupport
actually i do not like sql overall
16 replies
CC#
Created by IcyIme on 6/23/2024 in #help
i migrating from sqlserver to mongo db but in login the page throeing an errror ExpressionNotSupport
so sqlserver is good for relational data?
16 replies
CC#
Created by IcyIme on 6/23/2024 in #help
i migrating from sqlserver to mongo db but in login the page throeing an errror ExpressionNotSupport
bcs is simplier to use
16 replies
CC#
Created by IcyIme on 3/23/2024 in #help
I want to make a dynamic compiler of c# code and with that have a console on the web page, using thi
i do not know how to use it 😦
14 replies
CC#
Created by IcyIme on 3/23/2024 in #help
I want to make a dynamic compiler of c# code and with that have a console on the web page, using thi
using Microsoft.AspNetCore.Mvc;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using System;
using System.Threading.Tasks;

namespace DynamicScriptingAPI.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class ScriptController : ControllerBase
{
[HttpPost]
public async Task<IActionResult> ExecuteScript([FromBody] ScriptRequest request)
{
try
{
// Compile the code
Script<object> script = CSharpScript.Create(request.Code)
.WithOptions(ScriptOptions.Default
.WithReferences(typeof(Console).Assembly));

// Execute the code
var result = await script.RunAsync();

// Return the result
return Ok(result.ReturnValue);
}
catch (CompilationErrorException ex)
{
return BadRequest(ex.Message);
}
catch (Exception ex)
{
return StatusCode(500, ex.Message);
}
}
}

public class ScriptRequest
{
public string Code { get; set; }
}
}
using Microsoft.AspNetCore.Mvc;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using System;
using System.Threading.Tasks;

namespace DynamicScriptingAPI.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class ScriptController : ControllerBase
{
[HttpPost]
public async Task<IActionResult> ExecuteScript([FromBody] ScriptRequest request)
{
try
{
// Compile the code
Script<object> script = CSharpScript.Create(request.Code)
.WithOptions(ScriptOptions.Default
.WithReferences(typeof(Console).Assembly));

// Execute the code
var result = await script.RunAsync();

// Return the result
return Ok(result.ReturnValue);
}
catch (CompilationErrorException ex)
{
return BadRequest(ex.Message);
}
catch (Exception ex)
{
return StatusCode(500, ex.Message);
}
}
}

public class ScriptRequest
{
public string Code { get; set; }
}
}
14 replies
CC#
Created by IcyIme on 3/23/2024 in #help
I want to make a dynamic compiler of c# code and with that have a console on the web page, using thi
but i do not know how and where to startt
14 replies
CC#
Created by IcyIme on 1/25/2024 in #help
i have problem with ef core in rider
i fixed it by adding to the path
4 replies
CC#
Created by IcyIme on 1/25/2024 in #help
i have problem with ef core in rider
and i dont know how to fix it
4 replies
CC#
Created by IcyIme on 1/10/2024 in #help
blazor implementing 404 page
not work on blazor web app server render mode
3 replies
CC#
Created by AceChewy on 1/1/2024 in #help
C# Roadmap
or on sololearn
18 replies
CC#
Created by AceChewy on 1/1/2024 in #help
C# Roadmap
is free
18 replies
CC#
Created by AceChewy on 1/1/2024 in #help
C# Roadmap
for learning c# i recomended learn on codecademy
18 replies
CC#
Created by AceChewy on 1/1/2024 in #help
C# Roadmap
there is everythink what u need for start
18 replies
CC#
Created by AceChewy on 1/1/2024 in #help
C# Roadmap
18 replies
CC#
Created by IcyIme on 10/22/2023 in #help
❔ what learn first as beginerr blazor or asp.net
oh thanks
17 replies
CC#
Created by IcyIme on 8/10/2023 in #help
❔ asp.net core with angular or blazor which pick?
x
33 replies