diff --git a/Templates/LinqToDB.ttinclude b/Templates/LinqToDB.ttinclude index adca718..453a4ef 100644 --- a/Templates/LinqToDB.ttinclude +++ b/Templates/LinqToDB.ttinclude @@ -45,6 +45,7 @@ void GenerateTypesFromMetadata() from t in Tables.Values where GenerateSchemaAsType && t.Schema != null && !t.TableSchema.IsDefaultSchema group t by t.Schema into gr + orderby gr.Key let typeName = SchemaNameMapping.TryGetValue(gr.Key, out schemaName) ? schemaName : gr.Key select new {