diff --git a/Snippets/embeddedEntity.snippet b/Snippets/embeddedEntity.snippet index 88a3b02947..6392cbc8e0 100644 --- a/Snippets/embeddedEntity.snippet +++ b/Snippets/embeddedEntity.snippet @@ -11,14 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - entityName diff --git a/Snippets/entity.snippet b/Snippets/entity.snippet index 3d3a011ddf..d5743e1f0e 100644 --- a/Snippets/entity.snippet +++ b/Snippets/entity.snippet @@ -11,17 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - - System.Linq.Expressions - - entityName diff --git a/Snippets/entityWithName.snippet b/Snippets/entityWithName.snippet index 883ffa2b45..127daaef72 100644 --- a/Snippets/entityWithName.snippet +++ b/Snippets/entityWithName.snippet @@ -11,17 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - - System.Linq.Expressions - - entityName diff --git a/Snippets/expressionMethod.snippet b/Snippets/expressionMethod.snippet index 7d0a2f36de..4fbd6feb98 100644 --- a/Snippets/expressionMethod.snippet +++ b/Snippets/expressionMethod.snippet @@ -11,17 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - - System.Linq.Expressions - - methodName diff --git a/Snippets/expressionMethodQuery.snippet b/Snippets/expressionMethodQuery.snippet index 456139f950..1a0f05d573 100644 --- a/Snippets/expressionMethodQuery.snippet +++ b/Snippets/expressionMethodQuery.snippet @@ -11,20 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - - Signum.Engine - - - System.Linq.Expressions - - methodName diff --git a/Snippets/expressionProperty.snippet b/Snippets/expressionProperty.snippet index 7ec9a46e57..ace642db8f 100644 --- a/Snippets/expressionProperty.snippet +++ b/Snippets/expressionProperty.snippet @@ -11,17 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - - System.Linq.Expressions - - propertyName diff --git a/Snippets/expressionToString.snippet b/Snippets/expressionToString.snippet index 181dc46ff7..8e5ecda9f0 100644 --- a/Snippets/expressionToString.snippet +++ b/Snippets/expressionToString.snippet @@ -11,17 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - - System.Linq.Expressions - - methodName @@ -41,7 +30,7 @@ As.Expression(() => $field$);]]> +public override string ToString() => As.Expression(() => $field$);]]> diff --git a/Snippets/field.snippet b/Snippets/field.snippet index d58136e94f..0e818c0482 100644 --- a/Snippets/field.snippet +++ b/Snippets/field.snippet @@ -11,14 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - type @@ -43,4 +35,4 @@ - \ No newline at end of file + diff --git a/Snippets/fieldCreation.snippet b/Snippets/fieldCreation.snippet index fc6edfbf0f..250d8254c3 100644 --- a/Snippets/fieldCreation.snippet +++ b/Snippets/fieldCreation.snippet @@ -11,17 +11,9 @@ - - - Signum.Entities - - - Signum.Utilities - - - \ No newline at end of file + diff --git a/Snippets/fieldEuro.snippet b/Snippets/fieldEuro.snippet index 19512e4293..86974d3639 100644 --- a/Snippets/fieldEuro.snippet +++ b/Snippets/fieldEuro.snippet @@ -11,14 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - property diff --git a/Snippets/fieldLite.snippet b/Snippets/fieldLite.snippet index a01888aaed..0459519075 100644 --- a/Snippets/fieldLite.snippet +++ b/Snippets/fieldLite.snippet @@ -11,14 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - type diff --git a/Snippets/fieldMList.snippet b/Snippets/fieldMList.snippet index f8caa0c9c8..bb57c4b2cb 100644 --- a/Snippets/fieldMList.snippet +++ b/Snippets/fieldMList.snippet @@ -11,14 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - type @@ -34,7 +26,7 @@ $property$ { get; set; } = new MList<$type$>();$end$]]> +public MList<$type$> $property$ { get; set; } = new MList<$type$>();$end$]]> diff --git a/Snippets/fieldString.snippet b/Snippets/fieldString.snippet index 44b4171d55..94e380cfe9 100644 --- a/Snippets/fieldString.snippet +++ b/Snippets/fieldString.snippet @@ -11,14 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - property diff --git a/Snippets/graph.snippet b/Snippets/graph.snippet index 65ce05fa5d..b39e082cc6 100644 --- a/Snippets/graph.snippet +++ b/Snippets/graph.snippet @@ -11,20 +11,6 @@ - - - Signum.Engine - - - Signum.Engine.Operations - - - Signum.Entities - - - Signum.Utilities - - entityName @@ -57,4 +43,4 @@ - \ No newline at end of file + diff --git a/Snippets/include.snippet b/Snippets/include.snippet index e695af2a7d..a861f5d846 100644 --- a/Snippets/include.snippet +++ b/Snippets/include.snippet @@ -11,29 +11,6 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - - Signum.Engine.DynamicQuery - - - Signum.Engine.Maps - - - Signum.Engine.Operations - - - System.Reflection - - entityName diff --git a/Snippets/logic.snippet b/Snippets/logic.snippet index 0a611fe63d..77158d4d92 100644 --- a/Snippets/logic.snippet +++ b/Snippets/logic.snippet @@ -11,29 +11,6 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - - Signum.Engine.DynamicQuery - - - Signum.Engine.Maps - - - Signum.Engine.Operations - - - System.Reflection - - entityName @@ -48,23 +25,23 @@ () - .WithSave($entityName$Operation.Save) - .WithQuery(() => $entityParam$ => new - { - Entity = $entityParam$, - $entityParam$.Id, - $entityParam$.$end$ - }); - } + sb.Include<$entityName$Entity>() + .WithSave($entityName$Operation.Save) + .WithQuery(() => $entityParam$ => new + { + Entity = $entityParam$, + $entityParam$.Id, + $entityParam$.$end$ + }); } - }]]> + } +}]]> - \ No newline at end of file + diff --git a/Snippets/mixinEntity.snippet b/Snippets/mixinEntity.snippet index 55fb82ef93..83a688a89e 100644 --- a/Snippets/mixinEntity.snippet +++ b/Snippets/mixinEntity.snippet @@ -11,14 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - entityName @@ -28,19 +20,19 @@ + //public int AttachedField { get; set; } + // + //protected override void CopyFrom(MixinEntity mixin, object[] args) + //{ + // this.AttachedField = (($entityName$Mixin)mixin).AttachedField; + //} +}]]> diff --git a/Snippets/mlistQuery.snippet b/Snippets/mlistQuery.snippet index 879ddf050a..7537aa0871 100644 --- a/Snippets/mlistQuery.snippet +++ b/Snippets/mlistQuery.snippet @@ -11,17 +11,6 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - entityName @@ -45,7 +34,7 @@ - $entityParam$.$entityProp$)]]> + $entityParam$.$entityProp$)]]> - \ No newline at end of file + diff --git a/Snippets/modelEntity.snippet b/Snippets/modelEntity.snippet index bf9920410b..0bbb9c4853 100644 --- a/Snippets/modelEntity.snippet +++ b/Snippets/modelEntity.snippet @@ -11,17 +11,6 @@ - - - Signum.Entities - - - Signum.Utilities - - - System.Linq.Expressions - - entityName @@ -36,14 +25,13 @@ + $end$ +}]]> diff --git a/Snippets/query.snippet b/Snippets/query.snippet index 3295baf92d..d1043cb218 100644 --- a/Snippets/query.snippet +++ b/Snippets/query.snippet @@ -1,37 +1,26 @@ - - - -
- Query - query - Makes a database query - Signum Software - - Expansion - -
- - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - - - - entityName - Name of the main entity - Foo - - - - - ()]]> - -
+ + + +
+ Query + query + Makes a database query + Signum Software + + Expansion + +
+ + + + entityName + Name of the main entity + Foo + + + + + ()]]> + +
diff --git a/Snippets/registerQuery.snippet b/Snippets/registerQuery.snippet index 12a1062589..d997b85228 100644 --- a/Snippets/registerQuery.snippet +++ b/Snippets/registerQuery.snippet @@ -11,17 +11,6 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - entityName @@ -46,4 +35,4 @@ -
\ No newline at end of file + diff --git a/Snippets/save.snippet b/Snippets/save.snippet index 272340e498..b1ef38a05d 100644 --- a/Snippets/save.snippet +++ b/Snippets/save.snippet @@ -11,20 +11,6 @@ - - - Signum.Engine - - - Signum.Engine.Operations - - - Signum.Entities - - - Signum.Utilities - - entityName @@ -39,12 +25,12 @@ .Execute($entityName$Operation.Save) - { - CanBeNew = true, - CanBeModified = true, - Execute = ($entityParam$, _) => { }, - }.Register();]]> +{ + CanBeNew = true, + CanBeModified = true, + Execute = ($entityParam$, _) => { }, +}.Register();]]> - \ No newline at end of file + diff --git a/Snippets/start.snippet b/Snippets/start.snippet index bd858609b1..afcd0ee4bc 100644 --- a/Snippets/start.snippet +++ b/Snippets/start.snippet @@ -11,27 +11,15 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - - + } +}]]> - \ No newline at end of file + diff --git a/Snippets/synchronize.snippet b/Snippets/synchronize.snippet index a2c48ee2b7..65bd56328b 100644 --- a/Snippets/synchronize.snippet +++ b/Snippets/synchronize.snippet @@ -11,17 +11,6 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - (); @@ -52,4 +41,4 @@ BulkInserter.BulkInsertQueryIds(newEntities, n => n.Key);]]> - \ No newline at end of file + diff --git a/Snippets/tran.snippet b/Snippets/tran.snippet index eb8683ec63..a192d70672 100644 --- a/Snippets/tran.snippet +++ b/Snippets/tran.snippet @@ -12,17 +12,6 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - entityName @@ -48,4 +37,4 @@ - \ No newline at end of file + diff --git a/Snippets/unsafeUpdateMList.snippet b/Snippets/unsafeUpdateMList.snippet index 865d5d55df..b4b57fce01 100644 --- a/Snippets/unsafeUpdateMList.snippet +++ b/Snippets/unsafeUpdateMList.snippet @@ -11,17 +11,6 @@ - - - Signum.Engine - - - Signum.Entities - - - Signum.Utilities - - entityName @@ -53,4 +42,4 @@ - \ No newline at end of file +