This file contains hidden or 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
| 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" |
This file contains hidden or 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
| shoppingList.onItemClickListener = AdapterView.OnItemClickListener { | |
| p0, p1, p2, p3 -> | |
| } |
This file contains hidden or 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
| <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> |