Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emilies ønskeseddel #82

Open
2 tasks
EmilieSonne opened this issue Nov 29, 2021 · 2 comments
Open
2 tasks

Emilies ønskeseddel #82

EmilieSonne opened this issue Nov 29, 2021 · 2 comments

Comments

@EmilieSonne
Copy link
Collaborator

EmilieSonne commented Nov 29, 2021

Lav generic method til at hente models i DbService

  • Den skal også tilføjes til interfacet
  • DbService skal kun kaldes fra viewmodels'ne
@EmilieSonne
Copy link
Collaborator Author

EmilieSonne commented Nov 29, 2021

Ønsker mig også:

  • brug af visibility i stedet for "if" rundt om new post
  • visibilty toggle på edit categories
  • Omdøb alle filer/properties/variable til at hedde enten 'model' eller 'viewmodel' (hvor det giver mening - mener selvfølgelig ikke alle-alle)
  • Når man sletter en kategori inde i edit categories, skal man komme tilbage til edit categories-modalen bagefter, ikke til forsiden
  • Omskrive callbacks, så det kun er det der er nødvendigt at opdatere, der bliver opdateret (performance)

@EmilieSonne EmilieSonne changed the title Lav generic method til at hente models i DbService Emilies ønskeseddel Nov 29, 2021
@EmilieSonne
Copy link
Collaborator Author

    /* ---------------------------- udkast til generic method, dog skal alle overliggende ID'er enten hedde det samme (e.g., ParentID, og så ID til eget id) 
    private async Task<List<T>> GetCategoryModels<T>(int informationBoardId)
    {
        var informationBoardList = new List<T>();

        string sql = $"select * from {nameof(T)} where LicenseId = {licenseId};";
        informationBoardList = await LoadData<InformationBoard, dynamic>(sql, new { });

        return informationBoardList;
    } */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant