Skip to content

Instantly share code, notes, and snippets.

@kskalski
Created May 1, 2019 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kskalski/c8daa16133badca144259ebdb36873a6 to your computer and use it in GitHub Desktop.
Save kskalski/c8daa16133badca144259ebdb36873a6 to your computer and use it in GitHub Desktop.
Proto+EF model
syntax = "proto3";
package Models;
message Fruit {
int64 Id = 1;
string Name = 2;
double Weight = 3;
}
message Tree {
int64 Id = 1;
double Height = 2;
repeated Fruit Fruits = 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment