Category "c++sharp"

Using SqlConnection in Xamarin.Forms?

Can I use SqlConnection in Xamarin.Forms? I tend to use this in Windows and Web applications developed in Visual Studio, but I don't know how it would work in

System.NotSupportedException: Character set 'utf8mb3' is not supported by .Net Framework

I am trying to run a server with a MySQL Database, however I keep getting this huge error and I am not sure why. [21:15:49,107] Server Properties Lookup: Error

EntityFramework Core dbContext doesn't recognize SaveChanges() [closed]

I am working on .NET CORE 6 App along with Entity Framework CORE. I have created DbContext class that I am reference in my abstract BaseComman

Firebase storage requires twice during upload

I found that storage requires twice during uploading a single file Like this: Uploading : 0 out of 19160 Uploading : 19160 out of 19160 Uploading : 19160 out of

No suitable constructor found for entity type string

Yesterday I came her with a similar question about my own made entity type that head some errors. I fixed up these errors but now it throws one on entity type s

Backing up SQLite .db file on ASP .NET Core web server

I'm running a .NET Core wep app. It uses Entity Framework for SQLite. Thus, a .db file is generated. From time to time I want to back up this .db file. Can I d

Unable to load resource (.resx) file because it is not trusted

I am facing an issue while building windows source in Visual studio 2017. Showing the error message mentioned in the title. Anyone have any idea about this err

How do I solve error with Active Directory Search using user name

Im using the the below C# code to try search active directory for a user's email address by passing username. but this returns error using System.Text; using S

How to programatically Activate (being Selected) a Document from AvalonDockManager?

I've created a DockingManager from AvalonDock content in my project and my request is quite simple: when I add a document to my LayoutDocumentPaneGroup I want i

Override and New Keywords (C# Programming)

Understand that Override and New Keywords can help to either implement the base methods or the child methods. But when using the real time examples, I don't see

How does the behavior of .Take() changes based on the interface reference I'm using on left. IQueryable vs IEnumerable

Assume I've these sample codes IQueryable<Employee> data = context.Employees.Where(x => x.FullName != "Shekar Reddy"); var topE

C# Equivalant of Javas @DynamoDBTyped(DynamoDBAttributeType.BOOL)

I had this question but there was no C# answer, only Java ones (DyanmoDb is storing value 1 instead of boolean value true) so posting this. There is no way I kn

How can I use/inject a service in a "normal" c# class like in Blazor @inject ClassName classObject

I have a Blazor Project, in the Program.cs(formaly aka Startup.cs) I added a service builder.Services.AddSingleton<Models.UserVisit>();

How to serialize enum as string in Function App running on .net5 with OpenAPI/Swagger?

I am exploring Function App running on .net5 in the new isolated mode. I have HTTP triggered functions that I want to advertise via OpenAPI / Swagger. To do so,

Http 403 server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature

I generated SAS url with below code var blobBuilder = new BlobSasBuilder() { ExpiresOn = DateTimeOffset.UtcNow.AddDays(2),

In asp.net core mvc, the model binding for decimals does not accept thousand separators

For a model with a decimal property, if the value from client contains commas as thousand separator, the model binding will fail. How can we solve this? Any so

Adding Inlines to TextBox is very slow

In my application i have a console-like-control that displays infromation I send from various functions using: Run run = new Run("FancyText"); run.FontSize = 15

displaying parent-child elements hierarchically in c#

I have a parent-child structure in my db and I want to list them hierarchically n a C# program: id text parentid 1 A NULL 2 B NULL 5 a1 1 6

How to use MediaPipe in C#?

I would like to use the Face Mesh application from Media Pipe in a C# project. As the library is not impemented in C#, I looked for solutions. I found that my f

414 (Request-URI Too Long)

I am working on MVC platform and I am calling jqGrid using JSON GET. I have read on Request Limits, maxQueryStringLength, maxAllowedContentLength, maximum leng