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
<html> | |
<head> | |
<style> | |
table, | |
th, | |
td { | |
margin: 10px 0; | |
border: solid 1px #333; | |
padding: 2px 4px; |
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
Show hidden characters
// these are code snippets backup from vs code |
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
name: Build | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# Fix GitHub Actions crashing with: | |
# CRASH: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) |
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
var builder = WebApplication.CreateBuilder(args); | |
if (builder.Environment.IsDevelopment()) | |
{ | |
builder.Services.AddDbContext<MvcMovieContext>(options => | |
options.UseSqlite(builder.Configuration.GetConnectionString("MvcMovieContext"))); | |
} | |
else | |
{ | |
builder.Services.AddDbContext<MvcMovieContext>(options => |
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.ComponentModel.DataAnnotations; | |
namespace MvcMovie.Models | |
{ | |
public class People | |
{ | |
public int Id { get; set; } | |
public string? Title { get; set; } | |
[DataType(DataType.Date)] |