Category "c++sharp"

How does Multiple Active Result Set (MARS) work in SQL Server?

Just wondering if someone could explain how Multiple Active Result Set (MARS) works in SQL Server as it is not very clear on the MSDN site. (A) On a MARS conn

Call custom constructor with Dapper?

I'm trying to use Dapper to interface with the ASP.NET SQL Membership Provider tables. I wrapped the SqlMembershipProvider class and added an additional method

Defining multiple Id columns using Marten?

I'm currently using the default Id implementation of Marten for this Object fe public class DbOBject { public string Id { get; set; } p

Why does C# encounter this error as to the CSC file?

I am pretty new in C# development and I have the following problem. When I try to build the application on which I am working I obtain the followings errors me

Expand recurrence data of Outlook appointment and get list of occurence dates.

Is there any way to expand recurrence pattern and get list of dates that recurrence will occur. Outlook.RecurrencePattern pattern = aitem.GetRecurrencePattern

c sharp exe should ask for "run as administrator" prompt when opened

I am having an exe generated by a c sharp program. when i run the exe, i want an UAC prompt to appear with an option to run the exe as administrator. I have see

OpenXml SDK PowerPoint Sunburst chart

The Sunburst chart type was introduced in Office 2016 / 365, along with some other new chart types. I'm trying to work with the chart type in PowerPoint, but it

Uncaught SyntaxError: Invalid regular expression [intlTelInput]

I am trying to use intl-tel-input in Asp.net core 6.0 razor pages Here is my Scripts $(document).ready(function(){ $('#tbxPhone').intlTelInput();

Proper way to detect if SQLCMD.exe is installed?

I am creating a class library that takes .SQL files as input (FileInfo) and a connection string. It then attempts to execute the sql file against the connectio

ASP.NET Core Web App Error: Some services are not able to be constructed

This is my first question in StackOverFlow Now, I'm using asp.net core 5.0 and I am trying to create database for Redis called Basket. But I encountered an Erro

Unity car steering

I am using Unity Car Pro for car physics. I want the car to slip during the steering. This script is working perfect but it is so real. Here are some images t

Unity C# finding GameObjects using tags

I am just starting out with Unity and C# and i am trying to make an enemy chase after the player. For the enemy to find and chase the player i am using the foll

Visual studio Intellisense color-coding not working

Right now in my code suddenly some part of the code is not color-coded to Visual Studio classic theme colors. I am not sure if there is some error in my code bu

Determine whether an IQueryable<T> has been ordered or not

Is there a way to know if an IQueryable<T> has been ordered (using OrderBy or OrderbyDescending)? So I know whether to call OrderBy or ThenBy on the coll

Make sure that the controller has a parameterless public constructor error

I have followed this tutorial which has worked great, until I modified my DbContext to have an additional constructor. I am now having issues with the resolutio

Updating a document in Firebase Firestore from .Net Core console app

Use case Angular Firebase application that uses firestore as a form of persistence needs to communicate with a Discord Bot. I've built a synchronizer bot to me

.Net core library: How to test private methods using xUnit

The latest xunit framework does not allow test runners in library code when compiled with .Net Core framework (this is allowed for normal Visual Studio code). T

how to setup Teamcity (2021.2.2) deploy app with clickonce

I have a simple wpf/console app build that I want to deploy and be able to update where ever it is installed. So I picked clickonce, from ms, because that seame

Outlook ItemAdd event fires twice for new Calendar items

I'm working on an Outlook add-in that will monitor the current user's calendar and send that user an email when a specific type of appointment or meeting is rec

.Net core library: How to test private methods using xUnit

The latest xunit framework does not allow test runners in library code when compiled with .Net Core framework (this is allowed for normal Visual Studio code). T