Skip to content

Commit 73a5860

Browse files
committed
feat: update .gitignore files for Docker and add Class model property name changes for consistency
1 parent ef7a41b commit 73a5860

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

01-contenedores/lemoncode-challenge/dotnet-stack/backend/.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ bld/
4040
[Oo]ut/
4141
msbuild.log
4242
msbuild.err
43-
msbuild.wrn
43+
msbuild.wrn
44+
45+
46+
47+
# Docker
48+
.dockerignore
49+
compose.yaml
50+
Dockerfile

01-contenedores/lemoncode-challenge/dotnet-stack/backend/Models/Class.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ public class Class
99
[BsonRepresentation(BsonType.ObjectId)]
1010
public string? Id { get; set; }
1111

12-
[BsonElement("Name")]
12+
[BsonElement("name")]
1313
public string Name { get; set; } = null!;
1414

15-
[BsonElement("Instructor")]
15+
[BsonElement("instructor")]
1616
public string Instructor { get; set; } = null!;
1717

18-
[BsonElement("StartDate")]
18+
[BsonElement("startDate")]
1919
public DateTime StartDate { get; set; }
2020

21-
[BsonElement("EndDate")]
21+
[BsonElement("endDate")]
2222
public DateTime EndDate { get; set; }
2323

24-
[BsonElement("Duration")]
24+
[BsonElement("duration")]
2525
public int Duration { get; set; } // En horas
2626

27-
[BsonElement("Level")]
27+
[BsonElement("level")]
2828
public string Level { get; set; } = null!; // Beginner, Intermediate, Advanced
2929
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.dockerignore
2+
Dockerfile

0 commit comments

Comments
 (0)