📝 repo & entity added

pull/21/head
etudiant 2 years ago
parent cdc9fc1e77
commit 78b2271569

@ -0,0 +1,24 @@
using System;
namespace cat_cafe.Entities
{
public class Bar
{
public long Id { get; set; }
public string? Name { get; set; }
public List<Cat> cats { get; set; } = new List<Cat>();
public void addCat(Cat c)
{
cats.Add(c);
}
public void removeCat(Cat c)
{
cats.Remove(c);
}
}
}

@ -1,4 +1,4 @@
{ {
"$schema": "https://json.schemastore.org/launchsettings.json", "$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
@ -11,7 +11,6 @@
"profiles": { "profiles": {
"cat_cafe": { "cat_cafe": {
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "swagger",
"applicationUrl": "https://localhost:7229;http://localhost:5229", "applicationUrl": "https://localhost:7229;http://localhost:5229",
@ -28,4 +27,4 @@
} }
} }
} }
} }

@ -0,0 +1,11 @@
using System;
namespace cat_cafe.Repositories
{
public class BarContext
{
public BarContext()
{
}
}
}
Loading…
Cancel
Save