Skip to content

Instantly share code, notes, and snippets.

View Ronandt's full-sized avatar
🎯
Focusing

Isaac Ronandt

🎯
Focusing
View GitHub Profile
from fastapi import FastAPI
from fastapi_sqlalchemy import DBSessionMiddleware, db
from sqlalchemy import Column, Integer, String
from fastapi_sqlalchemy import SQLAlchemy
# ----------------------
# Database setup
# ----------------------
DATABASE_URL = "sqlite:///./example.db"
shoppingList.onItemClickListener = AdapterView.OnItemClickListener {
p0, p1, p2, p3 ->
}
@Ronandt
Ronandt / Details.cshtml
Created November 21, 2022 10:10
Bootstrap CRUD
<div>
<h4>Category</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Category.Name)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Category.Name)
</dd>