Git Product home page Git Product logo

Comments (4)

pdevito3 avatar pdevito3 commented on June 11, 2024

Migrations are just standard ef migrations like in any .NET project. There's nothing special that craftsman does here. The message catch at the end calling out success has some holes, but if you have an error, there's probably something wrong with the build or an entity that needs to be resolved.

I don't really have anything else to go on with what you gave me though. You could share the template and your craftsman version and I can take a look when I'm able or look at resolving the migrations yourself like in any other .NET project.

from craftsman.

ericsj avatar ericsj commented on June 11, 2024

Migrations are just standard ef migrations like in any .NET project. There's nothing special that craftsman does here. The message catch at the end calling out success has some holes, but if you have an error, there's probably something wrong with the build or an entity that needs to be resolved.

I don't really have anything else to go on with what you gave me though. You could share the template and your craftsman version and I can take a look when I'm able or look at resolving the migrations yourself like in any other .NET project.

Craftsman version: 0.23.2+ff50e1b35d0d3577ca947cbc7e71093583a1bff4
Dotnet version: 7.0.400
Dotnet ef version: 7.0.11
I just followed the getting started tutorial. The yaml is this:

DomainName: CarbonKitchen
BoundedContexts:
  - ProjectName: RecipeManagement
    Port: 5005
    DbContext:
      ContextName: RecipesDbContext
      DatabaseName: RecipeManagement
      Provider: postgres
    Entities:
      - Name: Recipe
        Features:
          - Type: AddRecord
          - Type: GetRecord
          - Type: GetList
          - Type: UpdateRecord
          - Type: DeleteRecord
        Properties:
          - Name: Title
            Type: string
          - Name: Directions
            Type: string
          - Name: RecipeSourceLink
            Type: string
          - Name: Description
            Type: string
          - Name: ImageLink
            Type: string
      - Name: Ingredient
        Features:
          - Type: AddRecord
          - Type: GetRecord
          - Type: GetList
          - Type: UpdateRecord
          - Type: DeleteRecord
        Properties:
          - Name: RecipeId
            Type: int?
          - Name: Name
            Type: string
          - Name: Unit
            Type: string
          - Name: Amount
            Type: double?
    SwaggerConfig:
      Title: Carbon Kitchen Recipes
      Description: Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at carbonkitchen.com/dev/docs
      ApiContact:
        Name: Carbon Kitchen
        Email: [email protected]
        Url: https://www.carbonkitchen.com

from craftsman.

pdevito3 avatar pdevito3 commented on June 11, 2024

Gotcha thanks for the details!

I definitely let that template get a bit out of date (glad you posted), but I'm not sure why it would fail offhand either. I'll take a look

from craftsman.

pdevito3 avatar pdevito3 commented on June 11, 2024

i just updated the tutorial to a working setup -- appreciate the callout on this. Full template below for easy of reference

DomainName: CarbonKitchen
BoundedContexts:
  - ProjectName: RecipeManagement
    Port: 5005
    DbContext:
      ContextName: RecipesDbContext
      DatabaseName: RecipeManagement
      Provider: postgres
    Entities:
      - Name: Recipe
        Features:
          - Type: AddRecord
          - Type: GetRecord
          - Type: GetList
          - Type: UpdateRecord
          - Type: DeleteRecord
        Properties:
          - Name: Title
            Type: string
          - Name: Directions
            Type: string
          - Name: RecipeSourceLink
            Type: string
          - Name: Description
            Type: string
          - Name: ImageLink
            Type: string
          - Name: Ingredients
            Relationship: 1tomany
            ForeignEntityName: Ingredient
            ForeignEntityPlural: Ingredients
      - Name: Ingredient
        Features:
          - Type: AddRecord
          - Type: GetRecord
          - Type: GetList
          - Type: UpdateRecord
          - Type: DeleteRecord
        Properties:
          - Name: Name
            Type: string
          - Name: Unit
            Type: string
          - Name: Amount
            Type: double?
    SwaggerConfig:
      Title: Carbon Kitchen Recipes
      Description: Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at carbonkitchen.com/dev/docs
      ApiContact:
        Name: Carbon Kitchen
        Email: [email protected]
        Url: https://www.carbonkitchen.com

from craftsman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.