private string ExtractName()
 {
     return(SlugHelper.Slug(GetType(), removeSufix: "Relation"));
 }
Exemplo n.º 2
0
 // TODO: allow to infer schemaName by slugging annotated class name
 public SchemaAttribute(Type type, string removePrefix = null, string removeSufix = "Model")
     : this($"{SlugHelper.Slug(type, removePrefix, removeSufix)}.json")
 {
 }