C# Web API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1992 Dream Team at Olympic Games in Barcelona, Spain | |
team = { | |
Karl_Malone: "Power Forward", | |
Christian_Laettner: "Power Forward", | |
Charles_Barkley: "Power Forward", | |
David_Robinson: "Center", | |
Patrick_Ewing: "Center", | |
Scottie_Pippen: "Strong Forward", | |
Chris_Mullen: "Strong Forward", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fib(first_num, second_num) | |
limit = 11 | |
while second_num < limit | |
sum = first_num + second_num | |
first_num = second_num | |
second_num = sum | |
end | |
sum | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
namespace CSharpQuiz | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace CoreyAbstractClassHW | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Pliers pliers = new Pliers | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* https://stackoverflow.com/questions/6286868/convert-month-int-to-month-name/6286910 *@ | |
@* https://blogs.msdn.microsoft.com/timlee/2010/07/30/using-functions-in-an-asp-net-page-with-razor-syntax/ *@ | |
@{ | |
ViewData["Title"] = "RazorPractice"; | |
} | |
<h1>Razor Practice</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
![c sharp logo](https://kironroy.github.io/c_sharp.svg) | |
--- | |
<a href="https://dev.to/kironroy"> | |
<img src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="Kiron Roy's DEV Profile" height="40" width="40"> | |
</a> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- inner join: only the records that match | |
-- left join: all the records from the left table, and all the matching records from the right table | |
-- right join: all the records from the right table, and all the matching records from the left table | |
select c.CompanyName, l.City | |
from dbo.Customers c | |
left join dbo.Locations l on c.id = l.CustomerId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Dapper; | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Text; | |
namespace DataAccessLibrary | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using DataAccessLibrary.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace DataAccessLibrary | |
{ | |
// this class will use the SQLDataAccess.cs | |
OlderNewer