ASP.NET Razor - C# Code Syntax - PDF Download Cheatsheet
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
*******************Example of search by title and genre ******************** | |
public class MovieController : Controller | |
{ | |
private MovieDBContext db = new MovieDBContext(); | |
public ActionResult Index(string movieGenre, string searchString) | |
{ | |
var GenreLst = new List<string>(); |
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
## console colour out colour codes | |
// syntax | |
console.log("\x1b[33m%s\x1b[0m" ,"I Am Using Yellow"); | |
console.log("\x1b[44m%s\x1b[0m" ,"Background Color Is Blue"); | |
// variable choices | |
Reset = "\x1b[0m" |
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
[push] | |
default = current | |
[alias] | |
fetch = git fetch --tags | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
rz = reset --hard HEAD | |
unwip = reset HEAD^ |
Asp.Net Core CheatSheet - PDF Download Cheatsheet
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.Linq; | |
using System.Reflection; | |
namespace Print | |
{ | |
class Program | |
{ |
NewerOlder