Comments (4)
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.
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.
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.
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)
- Windows Explorer issue HOT 3
- Minimal Api support HOT 3
- The GetList Feature will not return a list of objects HOT 1
- Using some characters in ProjectName breaks generated code
- Provide PATCH API call for scaffolded (users) API HOT 4
- Generated User classes have duplicate identifiers HOT 2
- Enable nullability in generated projects HOT 1
- Don't fully silence 500 errors by default HOT 1
- Naming inconsistency of Swagger Auth Scopes HOT 2
- Author cannot be null HOT 3
- CanFilter and CanSort properties incorrectly documented in Tutorial HOT 1
- BasePaginationParameters.cs already exists (when scaffolding multiple bounded contexts) HOT 1
- Missing using statements in domain entities HOT 3
- GetAll feature doesn't use plural HOT 1
- loggingLevelSwitch dev/prod incorrectly configured HOT 1
- How to use it with an existing database?
- Is there an example to use with Azure B2C auth? HOT 2
- Is't possible to create a project without entities? HOT 2
- New project don't create tables under the database HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craftsman.