File tree Expand file tree Collapse file tree
server/csharp/MetaObjects.IntegrationTests/Generated Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,10 +10,16 @@ public class AppDbContext : DbContext
1010 public AppDbContext ( DbContextOptions < AppDbContext > options ) : base ( options ) { }
1111
1212 public DbSet < Asset > Assets { get ; set ; } = default ! ;
13+ public DbSet < Follow > Follows { get ; set ; } = default ! ;
14+ public DbSet < Friendship > Friendships { get ; set ; } = default ! ;
1315 public DbSet < Measurement > Measurements { get ; set ; } = default ! ;
16+ public DbSet < Person > Persons { get ; set ; } = default ! ;
17+ public DbSet < Post > Posts { get ; set ; } = default ! ;
18+ public DbSet < PostTag > PostTags { get ; set ; } = default ! ;
1419 public DbSet < Program > Programs { get ; set ; } = default ! ;
1520 public DbSet < ProgramStat > ProgramStats { get ; set ; } = default ! ;
1621 public DbSet < ProgramView > ProgramViews { get ; set ; } = default ! ;
22+ public DbSet < Tag > Tags { get ; set ; } = default ! ;
1723 public DbSet < Week > Weeks { get ; set ; } = default ! ;
1824
1925 protected override void OnModelCreating ( ModelBuilder modelBuilder )
Original file line number Diff line number Diff line change 1+ // <auto-generated/>
2+ // Generated by MetaObjects entity-generator. Do not edit by hand.
3+ #nullable enable
4+ using System ;
5+ using System . Collections . Generic ;
6+ using System . ComponentModel . DataAnnotations ;
7+ using System . ComponentModel . DataAnnotations . Schema ;
8+
9+ namespace MetaObjects . IntegrationTests . Generated ;
10+
11+ [ PrimaryKey ( nameof ( FollowerId ) , nameof ( FolloweeId ) ) ]
12+ [ Table ( "follows" ) ]
13+ public class Follow
14+ {
15+ [ Column ( "followerId" ) ]
16+ public long FollowerId { get ; set ; }
17+ [ Column ( "followeeId" ) ]
18+ public long FolloweeId { get ; set ; }
19+ }
Original file line number Diff line number Diff line change 1+ // <auto-generated/>
2+ // Generated by MetaObjects entity-generator. Do not edit by hand.
3+ #nullable enable
4+ using System ;
5+ using System . Collections . Generic ;
6+ using System . ComponentModel . DataAnnotations ;
7+ using System . ComponentModel . DataAnnotations . Schema ;
8+
9+ namespace MetaObjects . IntegrationTests . Generated ;
10+
11+ [ PrimaryKey ( nameof ( PersonAId ) , nameof ( PersonBId ) ) ]
12+ [ Table ( "friendships" ) ]
13+ public class Friendship
14+ {
15+ [ Column ( "personAId" ) ]
16+ public long PersonAId { get ; set ; }
17+ [ Column ( "personBId" ) ]
18+ public long PersonBId { get ; set ; }
19+ }
Original file line number Diff line number Diff line change 1+ // <auto-generated/>
2+ // Generated by MetaObjects entity-generator. Do not edit by hand.
3+ #nullable enable
4+ using System ;
5+ using System . Collections . Generic ;
6+ using System . ComponentModel . DataAnnotations ;
7+ using System . ComponentModel . DataAnnotations . Schema ;
8+
9+ namespace MetaObjects . IntegrationTests . Generated ;
10+
11+ [ Table ( "people" ) ]
12+ public class Person
13+ {
14+ [ Key ]
15+ [ Column ( "id" ) ]
16+ public long Id { get ; set ; }
17+ [ Column ( "name" ) ]
18+ [ MaxLength ( 80 ) ]
19+ [ Required ]
20+ public string Name { get ; set ; } = default ! ;
21+ }
Original file line number Diff line number Diff line change 1+ // <auto-generated/>
2+ // Generated by MetaObjects entity-generator. Do not edit by hand.
3+ #nullable enable
4+ using System ;
5+ using System . Collections . Generic ;
6+ using System . ComponentModel . DataAnnotations ;
7+ using System . ComponentModel . DataAnnotations . Schema ;
8+
9+ namespace MetaObjects . IntegrationTests . Generated ;
10+
11+ [ Table ( "posts" ) ]
12+ public class Post
13+ {
14+ [ Key ]
15+ [ Column ( "id" ) ]
16+ public long Id { get ; set ; }
17+ [ Column ( "title" ) ]
18+ [ MaxLength ( 200 ) ]
19+ [ Required ]
20+ public string Title { get ; set ; } = default ! ;
21+ }
Original file line number Diff line number Diff line change 1+ // <auto-generated/>
2+ // Generated by MetaObjects entity-generator. Do not edit by hand.
3+ #nullable enable
4+ using System ;
5+ using System . Collections . Generic ;
6+ using System . ComponentModel . DataAnnotations ;
7+ using System . ComponentModel . DataAnnotations . Schema ;
8+
9+ namespace MetaObjects . IntegrationTests . Generated ;
10+
11+ [ PrimaryKey ( nameof ( PostId ) , nameof ( TagId ) ) ]
12+ [ Table ( "post_tags" ) ]
13+ public class PostTag
14+ {
15+ [ Column ( "postId" ) ]
16+ public long PostId { get ; set ; }
17+ [ Column ( "tagId" ) ]
18+ public long TagId { get ; set ; }
19+ }
Original file line number Diff line number Diff line change 1+ // <auto-generated/>
2+ // Generated by MetaObjects entity-generator. Do not edit by hand.
3+ #nullable enable
4+ using System ;
5+ using System . Collections . Generic ;
6+ using System . ComponentModel . DataAnnotations ;
7+ using System . ComponentModel . DataAnnotations . Schema ;
8+
9+ namespace MetaObjects . IntegrationTests . Generated ;
10+
11+ [ Table ( "tags" ) ]
12+ public class Tag
13+ {
14+ [ Key ]
15+ [ Column ( "id" ) ]
16+ public long Id { get ; set ; }
17+ [ Column ( "name" ) ]
18+ [ MaxLength ( 80 ) ]
19+ [ Required ]
20+ public string Name { get ; set ; } = default ! ;
21+ }
You can’t perform that action at this time.
0 commit comments