4327 1
Generic type array get and set in C# , how to make it work?

getting error While executing the code below in C#

...
Type
Question
4220 2
How to subtract total of each row in C# matrix from constant number and sum the result?

Hi, I would like to know how to subtract total of each row in C# matrix from a magic constant number(example : 15) and sum the result, for example, here is my current matrix

...
Type
Question
4201 1
GoogleWebAuthorizationBroker.AuthorizeAsync is not working on Server

GoogleWebAuthorizationBroker.AuthorizeAsync is not working on localhost but not working in server

...
Type
Question
4183 0
Remove All WhiteSpace from string in C# (Multiple Methods)
In this article, I have provided working example to remove all whitespace from string or trim spaces between characters in C#.
Type
Article
4097 1
Extract String between two string in C#?

Hello, I want simple and easy solution to extract or get string between two strings in C#, so for example I have string "Hello World, I am .NET developer", I need output as "I am" only.

How can i do it in simple and fast way? Thanks

...
Type
Question


4086 2
Dynamic Menu Tree View from Database

This is the sample link from here also.

Sample Tree View

I've just wanted to know what is the best approach to render it fast.

On the link I provided you will see a tree view coming out from database.

What should I do to render it fast. Here's what I think please guide for better approache(s).

1) Load only parent, then load children when the parent was clicked. (What I think was, why should I fetch all data if I am not using it. That's why I only load parent then the children when the parent is clicked. Is right or not).

2) Build the tree view in api/controller before sending it back to frontview so when the loading was complete all data was already built. (but it takes to fetch coming out from api, the user will see broken menu tree view. Lets say I have e-commerce site like this. below image). How to build menu like this in fastest way without seeing broken tree. (The image is sample to see expected result.)

Happy Coding!

...
Type
Question
4063 2
Unable to find package 'Abp.Owin' at source.

I am getting this error while trying to Install Abp.AspNetCore package using Nuget Package Manager console

...
Type
Question
3906 0
Clear Text File or Delete File in C#
In this article, I have mentioned how we can clear contents of a text file in C# or delete file completely in C# with console application example.
Type
Article
3831 1
What is Console.Log Equivalent in C#?

I am working in .NET Core Web-application/API, while working, I want to print some variables output in "Output" Windows of Visual Studio, like in javascript we use Console.Log() what is similar way of using Console log in C# Web application or Console Application? Thanks

...
Type
Question
3800 2
How to Switch ORM in Repository Pattern (C# .NET MVC)?

I have been searching on it how to switch ORM using repository pattern, and i was not able to find "examples/sample codes" of it so i can study with that. 

I believe my search keywords were wrong (ex. How to switch from EF to ADO.NET using Repo pattern and etc), thats why I can not find an article that talks about it.

Lets say we implement repository pattern with Entity Framework.

Is it repo pattern tightly coupled in Entity Framework? or

Do I need to create another Data Access Layer that talks for ADO.NET/or DAPPER/ Nhibernate?(for example)

Thanks in Advance.

...
Type
Question

Page 17 of 24