/
CoreStrings.Designer.cs
4566 lines (4065 loc) · 290 KB
/
CoreStrings.Designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// <auto-generated />
using System;
using System.Reflection;
using System.Resources;
using System.Threading;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.Extensions.Logging;
namespace Microsoft.EntityFrameworkCore.Diagnostics
{
/// <summary>
/// <para>
/// String resources used in EF exceptions, etc.
/// </para>
/// <para>
/// These strings are exposed publicly for use by database providers and extensions.
/// It is unusual for application code to need these strings.
/// </para>
/// </summary>
public static class CoreStrings
{
private static readonly ResourceManager _resourceManager
= new ResourceManager("Microsoft.EntityFrameworkCore.Properties.CoreStrings", typeof(CoreStrings).Assembly);
/// <summary>
/// The corresponding CLR type for entity type '{entityType}' cannot be instantiated, and there is no derived entity type in the model that corresponds to a concrete CLR type.
/// </summary>
public static string AbstractLeafEntityType([CanBeNull] object entityType)
=> string.Format(
GetString("AbstractLeafEntityType", nameof(entityType)),
entityType);
/// <summary>
/// Cannot add an entity type with type '{typeName}' to the model as it is a dynamically-generated proxy type.
/// </summary>
public static string AddingProxyTypeAsEntityType([CanBeNull] object typeName)
=> string.Format(
GetString("AddingProxyTypeAsEntityType", nameof(typeName)),
typeName);
/// <summary>
/// The entity type '{entityType}' has a defining navigation and the supplied entity is currently referenced from several owner entities. To access the entry for a particular reference, call '{targetEntryCall}' on the owner entry.
/// </summary>
public static string AmbiguousDependentEntity([CanBeNull] object entityType, [CanBeNull] object targetEntryCall)
=> string.Format(
GetString("AmbiguousDependentEntity", nameof(entityType), nameof(targetEntryCall)),
entityType, targetEntryCall);
/// <summary>
/// The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be configured as having a required dependent since the dependent side cannot be determined. To identify the dependent side of the relationship, configure the foreign key property in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details.
/// </summary>
public static string AmbiguousEndRequiredDependent([CanBeNull] object foreignKeyProperties, [CanBeNull] object entityType)
=> string.Format(
GetString("AmbiguousEndRequiredDependent", nameof(foreignKeyProperties), nameof(entityType)),
foreignKeyProperties, entityType);
/// <summary>
/// The navigation '{entityType}.{navigation}' cannot be configured as required since the dependent side of the underlying foreign key {foreignKeyProperties} cannot be determined. To identify the dependent side of the relationship, configure the foreign key property in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details.
/// </summary>
public static string AmbiguousEndRequiredDependentNavigation([CanBeNull] object entityType, [CanBeNull] object navigation, [CanBeNull] object foreignKeyProperties)
=> string.Format(
GetString("AmbiguousEndRequiredDependentNavigation", nameof(entityType), nameof(navigation), nameof(foreignKeyProperties)),
entityType, navigation, foreignKeyProperties);
/// <summary>
/// The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be inverted to entity type '{principalEntityType}' since it was configured as required before the dependent side was configured. Configure the foreign key property or the principal key before configuring the foreign key as required. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details.
/// </summary>
public static string AmbiguousEndRequiredInverted([CanBeNull] object foreignKeyProperties, [CanBeNull] object entityType, [CanBeNull] object principalEntityType)
=> string.Format(
GetString("AmbiguousEndRequiredInverted", nameof(foreignKeyProperties), nameof(entityType), nameof(principalEntityType)),
foreignKeyProperties, entityType, principalEntityType);
/// <summary>
/// Both relationships between '{firstDependentToPrincipalNavigationSpecification}' and '{firstPrincipalToDependentNavigationSpecification}' and between '{secondDependentToPrincipalNavigationSpecification}' and '{secondPrincipalToDependentNavigationSpecification}' could use {foreignKeyProperties} as the foreign key. To resolve this, configure the foreign key properties explicitly in 'OnModelCreating' on at least one of the relationships.
/// </summary>
public static string AmbiguousForeignKeyPropertyCandidates([CanBeNull] object firstDependentToPrincipalNavigationSpecification, [CanBeNull] object firstPrincipalToDependentNavigationSpecification, [CanBeNull] object secondDependentToPrincipalNavigationSpecification, [CanBeNull] object secondPrincipalToDependentNavigationSpecification, [CanBeNull] object foreignKeyProperties)
=> string.Format(
GetString("AmbiguousForeignKeyPropertyCandidates", nameof(firstDependentToPrincipalNavigationSpecification), nameof(firstPrincipalToDependentNavigationSpecification), nameof(secondDependentToPrincipalNavigationSpecification), nameof(secondPrincipalToDependentNavigationSpecification), nameof(foreignKeyProperties)),
firstDependentToPrincipalNavigationSpecification, firstPrincipalToDependentNavigationSpecification, secondDependentToPrincipalNavigationSpecification, secondPrincipalToDependentNavigationSpecification, foreignKeyProperties);
/// <summary>
/// The dependent side could not be determined for the one-to-one relationship between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship, configure them independently via separate method chains in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details.
/// </summary>
public static string AmbiguousOneToOneRelationship([CanBeNull] object dependentToPrincipalNavigationSpecification, [CanBeNull] object principalToDependentNavigationSpecification)
=> string.Format(
GetString("AmbiguousOneToOneRelationship", nameof(dependentToPrincipalNavigationSpecification), nameof(principalToDependentNavigationSpecification)),
dependentToPrincipalNavigationSpecification, principalToDependentNavigationSpecification);
/// <summary>
/// Unable to determine the owner for the relationship between '{entityTypeNavigationSpecification}' and '{otherEntityType}' as both types have been marked as owned. Either manually configure the ownership, or ignore the corresponding navigations using the [NotMapped] attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
/// </summary>
public static string AmbiguousOwnedNavigation([CanBeNull] object entityTypeNavigationSpecification, [CanBeNull] object otherEntityType)
=> string.Format(
GetString("AmbiguousOwnedNavigation", nameof(entityTypeNavigationSpecification), nameof(otherEntityType)),
entityTypeNavigationSpecification, otherEntityType);
/// <summary>
/// The service property '{property}' of type '{serviceType}' cannot be added to the entity type '{entityType}' because there is another property of the same type. Ignore one of the properties using the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
/// </summary>
public static string AmbiguousServiceProperty([CanBeNull] object property, [CanBeNull] object serviceType, [CanBeNull] object entityType)
=> string.Format(
GetString("AmbiguousServiceProperty", nameof(property), nameof(serviceType), nameof(entityType)),
property, serviceType, entityType);
/// <summary>
/// The annotation '{annotation}' was not found. Ensure that the annotation has been added to the object {annotatable}
/// </summary>
public static string AnnotationNotFound([CanBeNull] object annotation, [CanBeNull] object annotatable)
=> string.Format(
GetString("AnnotationNotFound", nameof(annotation), nameof(annotatable)),
annotation, annotatable);
/// <summary>
/// The property '{property}' of the argument '{argument}' cannot be null.
/// </summary>
public static string ArgumentPropertyNull([CanBeNull] object property, [CanBeNull] object argument)
=> string.Format(
GetString("ArgumentPropertyNull", nameof(property), nameof(argument)),
property, argument);
/// <summary>
/// Cycle detected while auto-including navigations: {cycleNavigations}. To fix this issue, either don't configure at least one navigation in the cycle as auto included in `OnModelCreating` or call 'IgnoreAutoInclude' method on the query.
/// </summary>
public static string AutoIncludeNavigationCycle([CanBeNull] object cycleNavigations)
=> string.Format(
GetString("AutoIncludeNavigationCycle", nameof(cycleNavigations)),
cycleNavigations);
/// <summary>
/// Cannot set backing field '{field}' for the indexer property '{entityType}.{property}'. Ensure no backing fields are specified for indexer properties.
/// </summary>
public static string BackingFieldOnIndexer([CanBeNull] object field, [CanBeNull] object entityType, [CanBeNull] object property)
=> string.Format(
GetString("BackingFieldOnIndexer", nameof(field), nameof(entityType), nameof(property)),
field, entityType, property);
/// <summary>
/// The specified field '{field}' of type '{fieldType}' cannot be used for the property '{entityType}.{property}' of type '{propertyType}'. Only backing fields of types that are compatible with the property type can be used.
/// </summary>
public static string BadBackingFieldType([CanBeNull] object field, [CanBeNull] object fieldType, [CanBeNull] object entityType, [CanBeNull] object property, [CanBeNull] object propertyType)
=> string.Format(
GetString("BadBackingFieldType", nameof(field), nameof(fieldType), nameof(entityType), nameof(property), nameof(propertyType)),
field, fieldType, entityType, property, propertyType);
/// <summary>
/// The service dependencies type '{dependenciesType}' has been registered incorrectly in the service collection. Service dependencies types must only be registered by Entity Framework or database providers.
/// </summary>
public static string BadDependencyRegistration([CanBeNull] object dependenciesType)
=> string.Format(
GetString("BadDependencyRegistration", nameof(dependenciesType)),
dependenciesType);
/// <summary>
/// The filter expression '{filter}' cannot be specified for entity type '{entityType}'. A filter may only be applied to the root entity type '{rootType}'.
/// </summary>
public static string BadFilterDerivedType([CanBeNull] object filter, [CanBeNull] object entityType, [CanBeNull] object rootType)
=> string.Format(
GetString("BadFilterDerivedType", nameof(filter), nameof(entityType), nameof(rootType)),
filter, entityType, rootType);
/// <summary>
/// The filter expression '{filter}' specified for entity type '{entityType}' is invalid. The expression must accept a single parameter of type '{clrType}' and return bool.
/// </summary>
public static string BadFilterExpression([CanBeNull] object filter, [CanBeNull] object entityType, [CanBeNull] object clrType)
=> string.Format(
GetString("BadFilterExpression", nameof(filter), nameof(entityType), nameof(clrType)),
filter, entityType, clrType);
/// <summary>
/// The filter expression '{filter}' cannot be specified for owned entity type '{entityType}'. A filter may only be applied to an entity type that is not owned.
/// </summary>
public static string BadFilterOwnedType([CanBeNull] object filter, [CanBeNull] object entityType)
=> string.Format(
GetString("BadFilterOwnedType", nameof(filter), nameof(entityType)),
filter, entityType);
/// <summary>
/// The type '{givenType}' cannot be used as a value generator because it does not inherit from '{expectedType}'. Make sure to inherit value generators from '{expectedType}'.
/// </summary>
public static string BadValueGeneratorType([CanBeNull] object givenType, [CanBeNull] object expectedType)
=> string.Format(
GetString("BadValueGeneratorType", nameof(givenType), nameof(expectedType)),
givenType, expectedType);
/// <summary>
/// The current database provider has not implemented the 'CanConnect' method.
/// </summary>
public static string CanConnectNotImplemented
=> GetString("CanConnectNotImplemented");
/// <summary>
/// The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because the type of the property is '{propertyType}' which is not a nullable type. Any property can be marked as non-nullable/required, but only properties of nullable types can be marked as nullable/optional.
/// </summary>
public static string CannotBeNullable([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object propertyType)
=> string.Format(
GetString("CannotBeNullable", "0_property", "1_entityType", nameof(propertyType)),
property, entityType, propertyType);
/// <summary>
/// The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because the property is a part of a key. Any property can be marked as non-nullable/required, but only properties of nullable types and which are not part of a key can be marked as nullable/optional.
/// </summary>
public static string CannotBeNullablePK([CanBeNull] object property, [CanBeNull] object entityType)
=> string.Format(
GetString("CannotBeNullablePK", "0_property", "1_entityType"),
property, entityType);
/// <summary>
/// Unable to convert a queryable method to an enumerable method. This is likely an issue in Entity Framework, please file an issue at https://go.microsoft.com/fwlink/?linkid=2142044.
/// </summary>
public static string CannotConvertQueryableToEnumerableMethod
=> GetString("CannotConvertQueryableToEnumerableMethod");
/// <summary>
/// Cannot create an instance of value generator type '{generatorType}'. Ensure that the type can be instantiated and has a parameterless constructor, or use the overload of 'HasValueGenerator' that accepts a delegate.
/// </summary>
public static string CannotCreateValueGenerator([CanBeNull] object generatorType)
=> string.Format(
GetString("CannotCreateValueGenerator", nameof(generatorType)),
generatorType);
/// <summary>
/// The navigation '{1_entityType}.{0_navigation}' cannot be loaded because the entity is not being tracked. Navigations can only be loaded for tracked entities.
/// </summary>
public static string CannotLoadDetached([CanBeNull] object navigation, [CanBeNull] object entityType)
=> string.Format(
GetString("CannotLoadDetached", "0_navigation", "1_entityType"),
navigation, entityType);
/// <summary>
/// The type '{type}' cannot be marked as a shared type since an entity type with the same CLR type already exists in the model.
/// </summary>
public static string CannotMarkShared([CanBeNull] object type)
=> string.Format(
GetString("CannotMarkShared", nameof(type)),
type);
/// <summary>
/// Unable to create an instance of entity type '{entityType}' because it is abstract. Consider making make it non-abstract or mapping at least one derived type.
/// </summary>
public static string CannotMaterializeAbstractType([CanBeNull] object entityType)
=> string.Format(
GetString("CannotMaterializeAbstractType", nameof(entityType)),
entityType);
/// <summary>
/// Navigation '{1_entityType}.{0_navigationName}' was not found. Please add the navigation to the entity type before configuring it.
/// </summary>
public static string CanOnlyConfigureExistingNavigations([CanBeNull] object navigationName, [CanBeNull] object entityType)
=> string.Format(
GetString("CanOnlyConfigureExistingNavigations", "0_navigationName", "1_entityType"),
navigationName, entityType);
/// <summary>
/// The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy, but does not implement the required '{notificationInterface}' interface. Implement '{notificationInterface}' on '{entityType}' or use a different change tracking strategy.
/// </summary>
public static string ChangeTrackingInterfaceMissing([CanBeNull] object entityType, [CanBeNull] object changeTrackingStrategy, [CanBeNull] object notificationInterface)
=> string.Format(
GetString("ChangeTrackingInterfaceMissing", nameof(entityType), nameof(changeTrackingStrategy), nameof(notificationInterface)),
entityType, changeTrackingStrategy, notificationInterface);
/// <summary>
/// Unable to save changes because a circular dependency was detected in the data to be saved: '{cycle}'.
/// </summary>
public static string CircularDependency([CanBeNull] object cycle)
=> string.Format(
GetString("CircularDependency", nameof(cycle)),
cycle);
/// <summary>
/// The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{baseEntityType}' is a descendant of '{entityType}'. Review your model configuration.
/// </summary>
public static string CircularInheritance([CanBeNull] object entityType, [CanBeNull] object baseEntityType)
=> string.Format(
GetString("CircularInheritance", nameof(entityType), nameof(baseEntityType)),
entityType, baseEntityType);
/// <summary>
/// The shared-type entity type '{entityType}' cannot be added because the model already contains an entity type with the same name, but with a different CLR type '{otherClrType}'. Ensure all entity type names are unique.
/// </summary>
public static string ClashingMismatchedSharedType([CanBeNull] object entityType, [CanBeNull] object otherClrType)
=> string.Format(
GetString("ClashingMismatchedSharedType", nameof(entityType), nameof(otherClrType)),
entityType, otherClrType);
/// <summary>
/// An entity type named '{ownedTypeName}' has already been added to the model. Use a different name when configuring the ownership '{ownerEntityType}.{navigation}' in 'OnModelCreating'.
/// </summary>
public static string ClashingNamedOwnedType([CanBeNull] object ownedTypeName, [CanBeNull] object ownerEntityType, [CanBeNull] object navigation)
=> string.Format(
GetString("ClashingNamedOwnedType", nameof(ownedTypeName), nameof(ownerEntityType), nameof(navigation)),
ownedTypeName, ownerEntityType, navigation);
/// <summary>
/// The type '{entityType}' cannot be marked as owned because the derived entity type '{derivedType}' has been configured as non-owned. Either don't configure '{derivedType}' as non-owned, or call 'HasBaseType(null)' for it in 'OnModelCreating'.
/// </summary>
public static string ClashingNonOwnedDerivedEntityType([CanBeNull] object entityType, [CanBeNull] object derivedType)
=> string.Format(
GetString("ClashingNonOwnedDerivedEntityType", nameof(entityType), nameof(derivedType)),
entityType, derivedType);
/// <summary>
/// The type '{entityType}' cannot be marked as owned because a non-owned entity type with the same name already exists.
/// </summary>
public static string ClashingNonOwnedEntityType([CanBeNull] object entityType)
=> string.Format(
GetString("ClashingNonOwnedEntityType", nameof(entityType)),
entityType);
/// <summary>
/// The shared type entity type '{entityType}' with CLR type '{type}' cannot be added to the model because a non-shared entity type with the same CLR type already exists.
/// </summary>
public static string ClashingNonSharedType([CanBeNull] object entityType, [CanBeNull] object type)
=> string.Format(
GetString("ClashingNonSharedType", nameof(entityType), nameof(type)),
entityType, type);
/// <summary>
/// The entity type '{entityType}' with a defining navigation cannot be added to the model because an entity type with the same name already exists.
/// </summary>
public static string ClashingNonWeakEntityType([CanBeNull] object entityType)
=> string.Format(
GetString("ClashingNonWeakEntityType", nameof(entityType)),
entityType);
/// <summary>
/// The type '{entityType}' cannot be configured as non-owned because an owned entity type with the same name already exists.
/// </summary>
public static string ClashingOwnedEntityType([CanBeNull] object entityType)
=> string.Format(
GetString("ClashingOwnedEntityType", nameof(entityType)),
entityType);
/// <summary>
/// The entity type '{entityType}' cannot be added to the model because its CLR type has been configured as a shared type.
/// </summary>
public static string ClashingSharedType([CanBeNull] object entityType)
=> string.Format(
GetString("ClashingSharedType", nameof(entityType)),
entityType);
/// <summary>
/// The entity type '{entityType}' cannot be added to the model because an entity type with a defining navigation with the same name already exists.
/// </summary>
public static string ClashingWeakEntityType([CanBeNull] object entityType)
=> string.Format(
GetString("ClashingWeakEntityType", nameof(entityType)),
entityType);
/// <summary>
/// The client projection contains a reference to a constant expression of '{constantType}' which is being passed as an argument to the method '{methodName}'. This could potentially cause a memory leak; consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information.
/// </summary>
public static string ClientProjectionCapturingConstantInMethodArgument([CanBeNull] object constantType, [CanBeNull] object methodName)
=> string.Format(
GetString("ClientProjectionCapturingConstantInMethodArgument", nameof(constantType), nameof(methodName)),
constantType, methodName);
/// <summary>
/// The client projection contains a reference to a constant expression of '{constantType}' through the instance method '{methodName}'. This could potentially cause a memory leak; consider making the method static so that it does not capture constant in the instance. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information.
/// </summary>
public static string ClientProjectionCapturingConstantInMethodInstance([CanBeNull] object constantType, [CanBeNull] object methodName)
=> string.Format(
GetString("ClientProjectionCapturingConstantInMethodInstance", nameof(constantType), nameof(methodName)),
constantType, methodName);
/// <summary>
/// The client projection contains a reference to a constant expression of '{constantType}'. This could potentially cause a memory leak; consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information.
/// </summary>
public static string ClientProjectionCapturingConstantInTree([CanBeNull] object constantType)
=> string.Format(
GetString("ClientProjectionCapturingConstantInTree", nameof(constantType)),
constantType);
/// <summary>
/// The property '{property}' cannot exist on type '{entityType}' because the type is marked as shadow state while the property is not. Shadow state types can only contain shadow state properties.
/// </summary>
public static string ClrPropertyOnShadowEntity([CanBeNull] object property, [CanBeNull] object entityType)
=> string.Format(
GetString("ClrPropertyOnShadowEntity", nameof(property), nameof(entityType)),
property, entityType);
/// <summary>
/// The property '{1_entityType}.{0_property}' is being accessed using '{collectionMethod}', but is defined in the model as a non-collection, reference navigation. Use '{referenceMethod}' to access reference navigation properties.
/// </summary>
public static string CollectionIsReference([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object collectionMethod, [CanBeNull] object referenceMethod)
=> string.Format(
GetString("CollectionIsReference", "0_property", "1_entityType", nameof(collectionMethod), nameof(referenceMethod)),
property, entityType, collectionMethod, referenceMethod);
/// <summary>
/// The comparer for type '{type}' cannot be used for '{entityType}.{propertyName}' because its type is '{propertyType}'.
/// </summary>
public static string ComparerPropertyMismatch([CanBeNull] object type, [CanBeNull] object entityType, [CanBeNull] object propertyName, [CanBeNull] object propertyType)
=> string.Format(
GetString("ComparerPropertyMismatch", nameof(type), nameof(entityType), nameof(propertyName), nameof(propertyType)),
type, entityType, propertyName, propertyType);
/// <summary>
/// There are multiple properties with the [ForeignKey] attribute pointing to navigation '{1_entityType}.{0_navigation}'. To define a composite foreign key using data annotations, use the [ForeignKey] attribute on the navigation.
/// </summary>
public static string CompositeFkOnProperty([CanBeNull] object navigation, [CanBeNull] object entityType)
=> string.Format(
GetString("CompositeFkOnProperty", "0_navigation", "1_entityType"),
navigation, entityType);
/// <summary>
/// The entity type '{entityType}' has multiple properties with the [Key] attribute. Composite primary keys can only be set using 'HasKey' in 'OnModelCreating'.
/// </summary>
public static string CompositePKWithDataAnnotation([CanBeNull] object entityType)
=> string.Format(
GetString("CompositePKWithDataAnnotation", nameof(entityType)),
entityType);
/// <summary>
/// A second operation was started on this context before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
/// </summary>
public static string ConcurrentMethodInvocation
=> GetString("ConcurrentMethodInvocation");
/// <summary>
/// Property '{1_entityType}.{0_property}' matches both '{field1}' and '{field2}' by convention. Explicitly specify the backing field to use with 'HasField' in 'OnModelCreating'.
/// </summary>
public static string ConflictingBackingFields([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object field1, [CanBeNull] object field2)
=> string.Format(
GetString("ConflictingBackingFields", "0_property", "1_entityType", nameof(field1), nameof(field2)),
property, entityType, field1, field2);
/// <summary>
/// There are multiple [ForeignKey] attributes which are pointing to same set of properties '{propertyList}' on entity type '{entityType}' and targeting the principal entity type '{principalEntityType}'.
/// </summary>
public static string ConflictingForeignKeyAttributes([CanBeNull] object propertyList, [CanBeNull] object entityType, [CanBeNull] object principalEntityType)
=> string.Format(
GetString("ConflictingForeignKeyAttributes", nameof(propertyList), nameof(entityType), nameof(principalEntityType)),
propertyList, entityType, principalEntityType);
/// <summary>
/// The property or navigation '{member}' cannot be added to the entity type '{entityType}' because a property or navigation with the same name already exists on entity type '{conflictingEntityType}'.
/// </summary>
public static string ConflictingPropertyOrNavigation([CanBeNull] object member, [CanBeNull] object entityType, [CanBeNull] object conflictingEntityType)
=> string.Format(
GetString("ConflictingPropertyOrNavigation", nameof(member), nameof(entityType), nameof(conflictingEntityType)),
member, entityType, conflictingEntityType);
/// <summary>
/// Cannot create a relationship between '{newPrincipalNavigationSpecification}' and '{newDependentNavigationSpecification}' because a relationship already exists between '{existingPrincipalNavigationSpecification}' and '{existingDependentNavigationSpecification}'. Navigation properties can only participate in a single relationship. If you want to override an existing relationship call 'Ignore' on the navigation '{newDependentNavigationSpecification}' first in 'OnModelCreating'.
/// </summary>
public static string ConflictingRelationshipNavigation([CanBeNull] object newPrincipalNavigationSpecification, [CanBeNull] object newDependentNavigationSpecification, [CanBeNull] object existingPrincipalNavigationSpecification, [CanBeNull] object existingDependentNavigationSpecification)
=> string.Format(
GetString("ConflictingRelationshipNavigation", nameof(newPrincipalNavigationSpecification), nameof(newDependentNavigationSpecification), nameof(existingPrincipalNavigationSpecification), nameof(existingDependentNavigationSpecification)),
newPrincipalNavigationSpecification, newDependentNavigationSpecification, existingPrincipalNavigationSpecification, existingDependentNavigationSpecification);
/// <summary>
/// cannot bind '{failedBinds}' in '{parameters}'
/// </summary>
public static string ConstructorBindingFailed([CanBeNull] object failedBinds, [CanBeNull] object parameters)
=> string.Format(
GetString("ConstructorBindingFailed", nameof(failedBinds), nameof(parameters)),
failedBinds, parameters);
/// <summary>
/// The constructors '{firstConstructor}' and '{secondConstructor}' have the same number of parameters, and can both be used by Entity Framework. The constructor to be used must be configured in 'OnModelCreating'.
/// </summary>
public static string ConstructorConflict([CanBeNull] object firstConstructor, [CanBeNull] object secondConstructor)
=> string.Format(
GetString("ConstructorConflict", nameof(firstConstructor), nameof(secondConstructor)),
firstConstructor, secondConstructor);
/// <summary>
/// No suitable constructor was found for entity type '{entityType}'. The following constructors had parameters that could not be bound to properties of the entity type: {constructors}.
/// </summary>
public static string ConstructorNotFound([CanBeNull] object entityType, [CanBeNull] object constructors)
=> string.Format(
GetString("ConstructorNotFound", nameof(entityType), nameof(constructors)),
entityType, constructors);
/// <summary>
/// Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling 'Dispose' on the context instance, or wrapping it in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.
/// </summary>
public static string ContextDisposed
=> GetString("ContextDisposed");
/// <summary>
/// The convention invocations have reached the recursion limit. This is likely an issue in Entity Framework, please file an issue at https://go.microsoft.com/fwlink/?linkid=2142044.
/// </summary>
public static string ConventionsInfiniteLoop
=> GetString("ConventionsInfiniteLoop");
/// <summary>
/// The value converter '{converter}' cannot be used with type '{type}'. This converter can only be used with {allowed}.
/// </summary>
public static string ConverterBadType([CanBeNull] object converter, [CanBeNull] object type, [CanBeNull] object allowed)
=> string.Format(
GetString("ConverterBadType", nameof(converter), nameof(type), nameof(allowed)),
converter, type, allowed);
/// <summary>
/// Converter for model type '{converterType}' cannot be used for '{entityType}.{propertyName}' because its type is '{propertyType}'.
/// </summary>
public static string ConverterPropertyMismatch([CanBeNull] object converterType, [CanBeNull] object entityType, [CanBeNull] object propertyName, [CanBeNull] object propertyType)
=> string.Format(
GetString("ConverterPropertyMismatch", nameof(converterType), nameof(entityType), nameof(propertyName), nameof(propertyType)),
converterType, entityType, propertyName, propertyType);
/// <summary>
/// Cannot compose converter from '{typeOneIn}' to '{typeOneOut}' with converter from '{typeTwoIn}' to '{typeTwoOut}' because the output type of the first converter doesn't match the input type of the second converter.
/// </summary>
public static string ConvertersCannotBeComposed([CanBeNull] object typeOneIn, [CanBeNull] object typeOneOut, [CanBeNull] object typeTwoIn, [CanBeNull] object typeTwoOut)
=> string.Format(
GetString("ConvertersCannotBeComposed", nameof(typeOneIn), nameof(typeOneOut), nameof(typeTwoIn), nameof(typeTwoOut)),
typeOneIn, typeOneOut, typeTwoIn, typeTwoOut);
/// <summary>
/// The extension method '{method}' is being used with a custom implementation of '{interfaceType}'. Use of custom implementations of the Entity Framework metadata interfaces is not supported, consider deriving from '{concreteType}' instead. Please contact the Entity Framework team if you have a compelling case for a custom implementation of the metadata interfaces so that we can consider ways to achieve this.
/// </summary>
public static string CustomMetadata([CanBeNull] object method, [CanBeNull] object interfaceType, [CanBeNull] object concreteType)
=> string.Format(
GetString("CustomMetadata", nameof(method), nameof(interfaceType), nameof(concreteType)),
method, interfaceType, concreteType);
/// <summary>
/// Data binding directly to 'DbSet.Local' is not supported since it does not provide a stable ordering. For WPF, bind to 'DbSet.Local.ToObservableCollection'. For WinForms, bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms, bind to 'DbSet.ToList' or use Model Binding.
/// </summary>
public static string DataBindingToLocalWithIListSource
=> GetString("DataBindingToLocalWithIListSource");
/// <summary>
/// Data binding directly to a store query is not supported. Instead populate a DbSet with data, for example by calling 'Load' on the DbSet, and then bind to local data to avoid sending a query to the database each time the databound control iterates the data. For WPF, bind to 'DbSet.Local.ToObservableCollection'. For WinForms, bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms, bind to 'DbSet.ToList' or use Model Binding.
/// </summary>
public static string DataBindingWithIListSource
=> GetString("DataBindingWithIListSource");
/// <summary>
/// 'AddDbContext' was called with configuration, but the context type '{contextType}' only declares a parameterless constructor. This means that the configuration passed to 'AddDbContext' will never be used. If configuration is passed to 'AddDbContext', then '{contextType}' should declare a constructor that accepts a DbContextOptions<{contextType}> and must pass it to the base constructor for DbContext.
/// </summary>
public static string DbContextMissingConstructor([CanBeNull] object contextType)
=> string.Format(
GetString("DbContextMissingConstructor", nameof(contextType)),
contextType);
/// <summary>
/// Cannot create DbSet for entity type '{entityType}' since it is of type '{entityClrType}' but the generic type provided is of type '{genericType}'.
/// </summary>
public static string DbSetIncorrectGenericType([CanBeNull] object entityType, [CanBeNull] object entityClrType, [CanBeNull] object genericType)
=> string.Format(
GetString("DbSetIncorrectGenericType", nameof(entityType), nameof(entityClrType), nameof(genericType)),
entityType, entityClrType, genericType);
/// <summary>
/// You are configuring a relationship between '{dependentEntityType}' and '{principalEntityType}' but have specified a foreign key on '{entityType}'. The foreign key must be defined on a type that is part of the relationship.
/// </summary>
public static string DependentEntityTypeNotInRelationship([CanBeNull] object dependentEntityType, [CanBeNull] object principalEntityType, [CanBeNull] object entityType)
=> string.Format(
GetString("DependentEntityTypeNotInRelationship", nameof(dependentEntityType), nameof(principalEntityType), nameof(entityType)),
dependentEntityType, principalEntityType, entityType);
/// <summary>
/// Unable to set a base type for entity type '{entityType}' because it has been configured as keyless.
/// </summary>
public static string DerivedEntityCannotBeKeyless([CanBeNull] object entityType)
=> string.Format(
GetString("DerivedEntityCannotBeKeyless", nameof(entityType)),
entityType);
/// <summary>
/// Unable to set a base type for entity type '{entityType}' because it has one or more keys defined. Only root types can have keys.
/// </summary>
public static string DerivedEntityCannotHaveKeys([CanBeNull] object entityType)
=> string.Format(
GetString("DerivedEntityCannotHaveKeys", nameof(entityType)),
entityType);
/// <summary>
/// '{derivedType}' cannot be configured as keyless because it is a derived type; the root type '{rootType}' must be configured as keyless instead. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder in 'OnModelCreating', or referenced from a navigation on a type that is included in the model.
/// </summary>
public static string DerivedEntityTypeHasNoKey([CanBeNull] object derivedType, [CanBeNull] object rootType)
=> string.Format(
GetString("DerivedEntityTypeHasNoKey", nameof(derivedType), nameof(rootType)),
derivedType, rootType);
/// <summary>
/// A key cannot be configured on '{derivedType}' because it is a derived type. The key must be configured on the root type '{rootType}'. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder, or referenced from a navigation on a type that is included in the model.
/// </summary>
public static string DerivedEntityTypeKey([CanBeNull] object derivedType, [CanBeNull] object rootType)
=> string.Format(
GetString("DerivedEntityTypeKey", nameof(derivedType), nameof(rootType)),
derivedType, rootType);
/// <summary>
/// The entity type '{entityType}' cannot have a defining query because it is derived from '{baseType}'. Only base entity types can have a defining query.
/// </summary>
public static string DerivedTypeDefiningQuery([CanBeNull] object entityType, [CanBeNull] object baseType)
=> string.Format(
GetString("DerivedTypeDefiningQuery", nameof(entityType), nameof(baseType)),
entityType, baseType);
/// <summary>
/// Cannot configure the discriminator value for entity type '{entityType}' because it doesn't derive from '{rootEntityType}'.
/// </summary>
public static string DiscriminatorEntityTypeNotDerived([CanBeNull] object entityType, [CanBeNull] object rootEntityType)
=> string.Format(
GetString("DiscriminatorEntityTypeNotDerived", nameof(entityType), nameof(rootEntityType)),
entityType, rootEntityType);
/// <summary>
/// A discriminator property cannot be set for the entity type '{entityType}' because it is not the root of an inheritance hierarchy.
/// </summary>
public static string DiscriminatorPropertyMustBeOnRoot([CanBeNull] object entityType)
=> string.Format(
GetString("DiscriminatorPropertyMustBeOnRoot", nameof(entityType)),
entityType);
/// <summary>
/// Unable to set property '{property}' as a discriminator for entity type '{entityType}' because it is not a property of '{entityType}'.
/// </summary>
public static string DiscriminatorPropertyNotFound([CanBeNull] object property, [CanBeNull] object entityType)
=> string.Format(
GetString("DiscriminatorPropertyNotFound", nameof(property), nameof(entityType)),
property, entityType);
/// <summary>
/// Cannot set discriminator value '{value}' for discriminator property '{discriminator}' because it is not assignable to type '{discriminatorType}'.
/// </summary>
public static string DiscriminatorValueIncompatible([CanBeNull] object value, [CanBeNull] object discriminator, [CanBeNull] object discriminatorType)
=> string.Format(
GetString("DiscriminatorValueIncompatible", nameof(value), nameof(discriminator), nameof(discriminatorType)),
value, discriminator, discriminatorType);
/// <summary>
/// The annotation '{annotation}' cannot be added because an annotation with the same name already exists on the object {annotatable}
/// </summary>
public static string DuplicateAnnotation([CanBeNull] object annotation, [CanBeNull] object annotatable)
=> string.Format(
GetString("DuplicateAnnotation", nameof(annotation), nameof(annotatable)),
annotation, annotatable);
/// <summary>
/// The discriminator value for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy must have a unique discriminator value.
/// </summary>
public static string DuplicateDiscriminatorValue([CanBeNull] object entityType1, [CanBeNull] object discriminatorValue, [CanBeNull] object entityType2)
=> string.Format(
GetString("DuplicateDiscriminatorValue", nameof(entityType1), nameof(discriminatorValue), nameof(entityType2)),
entityType1, discriminatorValue, entityType2);
/// <summary>
/// The entity type '{entityType}' cannot be added to the model because an entity type with the same name already exists.
/// </summary>
public static string DuplicateEntityType([CanBeNull] object entityType)
=> string.Format(
GetString("DuplicateEntityType", nameof(entityType)),
entityType);
/// <summary>
/// The foreign key {foreignKeyProperties} cannot be added to the entity type '{entityType}' because a foreign key on the same properties already exists on entity type '{duplicateEntityType}' and also targets the key {keyProperties} on '{principalType}'.
/// </summary>
public static string DuplicateForeignKey([CanBeNull] object foreignKeyProperties, [CanBeNull] object entityType, [CanBeNull] object duplicateEntityType, [CanBeNull] object keyProperties, [CanBeNull] object principalType)
=> string.Format(
GetString("DuplicateForeignKey", nameof(foreignKeyProperties), nameof(entityType), nameof(duplicateEntityType), nameof(keyProperties), nameof(principalType)),
foreignKeyProperties, entityType, duplicateEntityType, keyProperties, principalType);
/// <summary>
/// The index {indexProperties} cannot be added to the entity type '{entityType}' because an unnamed index on the same properties already exists on entity type '{duplicateEntityType}'. Consider adding a name for one of the indexes in 'OnModelCreating'.
/// </summary>
public static string DuplicateIndex([CanBeNull] object indexProperties, [CanBeNull] object entityType, [CanBeNull] object duplicateEntityType)
=> string.Format(
GetString("DuplicateIndex", nameof(indexProperties), nameof(entityType), nameof(duplicateEntityType)),
indexProperties, entityType, duplicateEntityType);
/// <summary>
/// The key {keyProperties} cannot be added to the entity type '{entityType}' because a key on the same properties already exists on entity type '{duplicateEntityType}'.
/// </summary>
public static string DuplicateKey([CanBeNull] object keyProperties, [CanBeNull] object entityType, [CanBeNull] object duplicateEntityType)
=> string.Format(
GetString("DuplicateKey", nameof(keyProperties), nameof(entityType), nameof(duplicateEntityType)),
keyProperties, entityType, duplicateEntityType);
/// <summary>
/// The index named '{indexName}' defined on properties {indexProperties} cannot be added to the entity type '{entityType}' because an index with the same name already exists on entity type '{duplicateEntityType}'.
/// </summary>
public static string DuplicateNamedIndex([CanBeNull] object indexName, [CanBeNull] object indexProperties, [CanBeNull] object entityType, [CanBeNull] object duplicateEntityType)
=> string.Format(
GetString("DuplicateNamedIndex", nameof(indexName), nameof(indexProperties), nameof(entityType), nameof(duplicateEntityType)),
indexName, indexProperties, entityType, duplicateEntityType);
/// <summary>
/// The type '{entityType}' cannot have base type '{baseType}' because the properties '{derivedPropertyType}.{derivedProperty}' and '{basePropertyType}.{baseProperty}' are conflicting.
/// </summary>
public static string DuplicatePropertiesOnBase([CanBeNull] object entityType, [CanBeNull] object baseType, [CanBeNull] object derivedPropertyType, [CanBeNull] object derivedProperty, [CanBeNull] object basePropertyType, [CanBeNull] object baseProperty)
=> string.Format(
GetString("DuplicatePropertiesOnBase", nameof(entityType), nameof(baseType), nameof(derivedPropertyType), nameof(derivedProperty), nameof(basePropertyType), nameof(baseProperty)),
entityType, baseType, derivedPropertyType, derivedProperty, basePropertyType, baseProperty);
/// <summary>
/// The properties {propertyList} cannot be used for a foreign key, because they contain a duplicate: '{property}'.
/// </summary>
public static string DuplicatePropertyInForeignKey([CanBeNull] object propertyList, [CanBeNull] object property)
=> string.Format(
GetString("DuplicatePropertyInForeignKey", nameof(propertyList), nameof(property)),
propertyList, property);
/// <summary>
/// The properties {propertyList} cannot be used for an index, because they contain a duplicate: '{property}'.
/// </summary>
public static string DuplicatePropertyInIndex([CanBeNull] object propertyList, [CanBeNull] object property)
=> string.Format(
GetString("DuplicatePropertyInIndex", nameof(propertyList), nameof(property)),
propertyList, property);
/// <summary>
/// The properties {propertyList} cannot be used for a key, because they contain a duplicate: '{property}'.
/// </summary>
public static string DuplicatePropertyInKey([CanBeNull] object propertyList, [CanBeNull] object property)
=> string.Format(
GetString("DuplicatePropertyInKey", nameof(propertyList), nameof(property)),
propertyList, property);
/// <summary>
/// The service property '{property}' of type '{serviceType}' cannot be added to the entity type '{entityType}' because service property '{duplicateName}' of the same type already exists on entity type '{duplicateEntityType}'.
/// </summary>
public static string DuplicateServicePropertyType([CanBeNull] object property, [CanBeNull] object serviceType, [CanBeNull] object entityType, [CanBeNull] object duplicateName, [CanBeNull] object duplicateEntityType)
=> string.Format(
GetString("DuplicateServicePropertyType", nameof(property), nameof(serviceType), nameof(entityType), nameof(duplicateName), nameof(duplicateEntityType)),
property, serviceType, entityType, duplicateName, duplicateEntityType);
/// <summary>
/// Cannot translate '{comparisonOperator}' on a subquery expression of entity type '{entityType}' because it has a composite primary key. See https://go.microsoft.com/fwlink/?linkid=2141942 for information on how to rewrite your query.
/// </summary>
public static string EntityEqualityOnCompositeKeyEntitySubqueryNotSupported([CanBeNull] object comparisonOperator, [CanBeNull] object entityType)
=> string.Format(
GetString("EntityEqualityOnCompositeKeyEntitySubqueryNotSupported", nameof(comparisonOperator), nameof(entityType)),
comparisonOperator, entityType);
/// <summary>
/// Cannot translate the '{comparisonOperator}' on an expression of entity type '{entityType}' because it is a keyless entity. Consider using entity properties instead.
/// </summary>
public static string EntityEqualityOnKeylessEntityNotSupported([CanBeNull] object comparisonOperator, [CanBeNull] object entityType)
=> string.Format(
GetString("EntityEqualityOnKeylessEntityNotSupported", nameof(comparisonOperator), nameof(entityType)),
comparisonOperator, entityType);
/// <summary>
/// The entity type '{entityType}' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.
/// </summary>
public static string EntityRequiresKey([CanBeNull] object entityType)
=> string.Format(
GetString("EntityRequiresKey", nameof(entityType)),
entityType);
/// <summary>
/// The entity type '{entityType}' cannot be removed because '{derivedEntityType}' is derived from it. Before the entity type can be removed, all derived entity types must be removed or configured to use a different base entity type.
/// </summary>
public static string EntityTypeInUseByDerived([CanBeNull] object entityType, [CanBeNull] object derivedEntityType)
=> string.Format(
GetString("EntityTypeInUseByDerived", nameof(entityType), nameof(derivedEntityType)),
entityType, derivedEntityType);
/// <summary>
/// The entity type '{entityType}' cannot be removed because it is being referenced by foreign key {foreignKeyProperties} on '{referencingEntityType}'. Before the entity type can be removed, all referencing foreign keys must be removed.
/// </summary>
public static string EntityTypeInUseByReferencingForeignKey([CanBeNull] object entityType, [CanBeNull] object foreignKeyProperties, [CanBeNull] object referencingEntityType)
=> string.Format(
GetString("EntityTypeInUseByReferencingForeignKey", nameof(entityType), nameof(foreignKeyProperties), nameof(referencingEntityType)),
entityType, foreignKeyProperties, referencingEntityType);
/// <summary>
/// The entity type '{entityType}' cannot be removed because it is being referenced by the skip navigation '{skipNavigation}' on '{referencingEntityType}'. Before the entity type can be removed, all referencing skip navigations must be removed.
/// </summary>
public static string EntityTypeInUseByReferencingSkipNavigation([CanBeNull] object entityType, [CanBeNull] object skipNavigation, [CanBeNull] object referencingEntityType)
=> string.Format(
GetString("EntityTypeInUseByReferencingSkipNavigation", nameof(entityType), nameof(skipNavigation), nameof(referencingEntityType)),
entityType, skipNavigation, referencingEntityType);
/// <summary>
/// The entity types '{firstEntityType}' and '{secondEntityType}' do not belong to the same model.
/// </summary>
public static string EntityTypeModelMismatch([CanBeNull] object firstEntityType, [CanBeNull] object secondEntityType)
=> string.Format(
GetString("EntityTypeModelMismatch", nameof(firstEntityType), nameof(secondEntityType)),
firstEntityType, secondEntityType);
/// <summary>
/// The entity type '{entityType}' was not found. Ensure that the entity type has been added to the model.
/// </summary>
public static string EntityTypeNotFound([CanBeNull] object entityType)
=> string.Format(
GetString("EntityTypeNotFound", nameof(entityType)),
entityType);
/// <summary>
/// The specified entity type '{entityType}' is invalid. It must be the dependent entity type '{dependentType}', the principal entity type '{principalType}' or an entity type derived from one of them.
/// </summary>
public static string EntityTypeNotInRelationship([CanBeNull] object entityType, [CanBeNull] object dependentType, [CanBeNull] object principalType)
=> string.Format(
GetString("EntityTypeNotInRelationship", nameof(entityType), nameof(dependentType), nameof(principalType)),
entityType, dependentType, principalType);
/// <summary>
/// The specified entity type '{entityType}' is invalid. It must be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}'.
/// </summary>
public static string EntityTypeNotInRelationshipStrict([CanBeNull] object entityType, [CanBeNull] object dependentType, [CanBeNull] object principalType)
=> string.Format(
GetString("EntityTypeNotInRelationshipStrict", nameof(entityType), nameof(dependentType), nameof(principalType)),
entityType, dependentType, principalType);
/// <summary>
/// The specified entity types '{invalidDependentType}' and '{invalidPrincipalType}' are invalid. They should be '{dependentType}' and '{principalType}', or entity types in the same hierarchy.
/// </summary>
public static string EntityTypesNotInRelationship([CanBeNull] object invalidDependentType, [CanBeNull] object invalidPrincipalType, [CanBeNull] object dependentType, [CanBeNull] object principalType)
=> string.Format(
GetString("EntityTypesNotInRelationship", nameof(invalidDependentType), nameof(invalidPrincipalType), nameof(dependentType), nameof(principalType)),
invalidDependentType, invalidPrincipalType, dependentType, principalType);
/// <summary>
/// Cannot use multiple context instances within a single query execution. Ensure the query uses a single context instance.
/// </summary>
public static string ErrorInvalidQueryable
=> GetString("ErrorInvalidQueryable");
/// <summary>
/// An error occurred while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was of type '{actualType}'.
/// </summary>
public static string ErrorMaterializingPropertyInvalidCast([CanBeNull] object entityType, [CanBeNull] object property, [CanBeNull] object expectedType, [CanBeNull] object actualType)
=> string.Format(
GetString("ErrorMaterializingPropertyInvalidCast", nameof(entityType), nameof(property), nameof(expectedType), nameof(actualType)),
entityType, property, expectedType, actualType);
/// <summary>
/// The configured execution strategy '{strategy}' does not support user-initiated transactions. Use the execution strategy returned by '{getExecutionStrategyMethod}' to execute all the operations in the transaction as a retriable unit.
/// </summary>
public static string ExecutionStrategyExistingTransaction([CanBeNull] object strategy, [CanBeNull] object getExecutionStrategyMethod)
=> string.Format(
GetString("ExecutionStrategyExistingTransaction", nameof(strategy), nameof(getExecutionStrategyMethod)),
strategy, getExecutionStrategyMethod);
/// <summary>
/// An exception was thrown while attempting to evaluate a LINQ query parameter expression. See the inner exception for more information. To show additional information call 'DbContextOptionsBuilder.EnableSensitiveDataLogging'.
/// </summary>
public static string ExpressionParameterizationException
=> GetString("ExpressionParameterizationException");
/// <summary>
/// An exception was thrown while attempting to evaluate the LINQ query parameter expression '{expression}'. See the inner exception for more information.
/// </summary>
public static string ExpressionParameterizationExceptionSensitive([CanBeNull] object expression)
=> string.Format(
GetString("ExpressionParameterizationExceptionSensitive", nameof(expression)),
expression);
/// <summary>
/// The specified field '{field}' cannot be used for the property '{entityType}.{property}' because it does not match the property name.
/// </summary>
public static string FieldNameMismatch([CanBeNull] object field, [CanBeNull] object entityType, [CanBeNull] object property)
=> string.Format(
GetString("FieldNameMismatch", nameof(field), nameof(entityType), nameof(property)),
field, entityType, property);
/// <summary>
/// Entity type '{entityType}' is defined with a single key property, but {valuesCount} values were passed to the 'DbSet.Find' method.
/// </summary>
public static string FindNotCompositeKey([CanBeNull] object entityType, [CanBeNull] object valuesCount)
=> string.Format(
GetString("FindNotCompositeKey", nameof(entityType), nameof(valuesCount)),
entityType, valuesCount);
/// <summary>
/// Entity type '{entityType}' is defined with a {propertiesCount}-part composite key, but {valuesCount} values were passed to the 'DbSet.Find' method.
/// </summary>
public static string FindValueCountMismatch([CanBeNull] object entityType, [CanBeNull] object propertiesCount, [CanBeNull] object valuesCount)
=> string.Format(
GetString("FindValueCountMismatch", nameof(entityType), nameof(propertiesCount), nameof(valuesCount)),
entityType, propertiesCount, valuesCount);
/// <summary>
/// The key value at position {index} of the call to 'DbSet<{entityType}>.Find' was of type '{valueType}', which does not match the property type of '{propertyType}'.
/// </summary>
public static string FindValueTypeMismatch([CanBeNull] object index, [CanBeNull] object entityType, [CanBeNull] object valueType, [CanBeNull] object propertyType)
=> string.Format(
GetString("FindValueTypeMismatch", nameof(index), nameof(entityType), nameof(valueType), nameof(propertyType)),
index, entityType, valueType, propertyType);
/// <summary>
/// The [ForeignKey] attribute for the navigation '{navigation}' cannot be specified on the entity type '{principalType}' since it represents a one-to-many relationship. Move the [ForeignKey] attribute to a property on '{dependentType}'.
/// </summary>
public static string FkAttributeOnNonUniquePrincipal([CanBeNull] object navigation, [CanBeNull] object principalType, [CanBeNull] object dependentType)
=> string.Format(
GetString("FkAttributeOnNonUniquePrincipal", nameof(navigation), nameof(principalType), nameof(dependentType)),
navigation, principalType, dependentType);
/// <summary>
/// The [ForeignKey] attributes on property '{property}' and navigation '{navigation}' in entity type '{entityType}' do not point at each other. The value of the [ForeignKey] attribute on the property should be navigation name, and the value of the [ForeignKey] attribute on the navigation should be the foreign key property name.
/// </summary>
public static string FkAttributeOnPropertyNavigationMismatch([CanBeNull] object property, [CanBeNull] object navigation, [CanBeNull] object entityType)
=> string.Format(
GetString("FkAttributeOnPropertyNavigationMismatch", nameof(property), nameof(navigation), nameof(entityType)),
property, navigation, entityType);
/// <summary>
/// The [ForeignKey] attribute cannot be specified on the skip navigation '{entityType}'.'{navigation}'. Configure the foreign key properties in 'OnModelCreating' instead.
/// </summary>
public static string FkAttributeOnSkipNavigation([CanBeNull] object entityType, [CanBeNull] object navigation)
=> string.Format(
GetString("FkAttributeOnSkipNavigation", nameof(entityType), nameof(navigation)),
entityType, navigation);
/// <summary>
/// The number of properties specified for the foreign key {foreignKeyProperties} on entity type '{dependentType}' does not match the number of properties in the principal key {principalKey} on entity type '{principalType}'.
/// </summary>
public static string ForeignKeyCountMismatch([CanBeNull] object foreignKeyProperties, [CanBeNull] object dependentType, [CanBeNull] object principalKey, [CanBeNull] object principalType)
=> string.Format(
GetString("ForeignKeyCountMismatch", nameof(foreignKeyProperties), nameof(dependentType), nameof(principalKey), nameof(principalType)),
foreignKeyProperties, dependentType, principalKey, principalType);
/// <summary>
/// Cannot remove the foreign key {foreigKey} from entity type '{entityType}' because it is referenced by a skip navigation '{navigation}' on entity type '{navigationEntityType}'. All referencing skip navigation must be removed before the referenced foreign key can be removed.
/// </summary>
public static string ForeignKeyInUseSkipNavigation([CanBeNull] object foreigKey, [CanBeNull] object entityType, [CanBeNull] object navigation, [CanBeNull] object navigationEntityType)
=> string.Format(
GetString("ForeignKeyInUseSkipNavigation", nameof(foreigKey), nameof(entityType), nameof(navigation), nameof(navigationEntityType)),
foreigKey, entityType, navigation, navigationEntityType);
/// <summary>
/// The specified foreign key properties {foreignKeyProperties} are not declared on the entity type '{entityType}'. Ensure that foreign key properties are declared on the target entity type.
/// </summary>
public static string ForeignKeyPropertiesWrongEntity([CanBeNull] object foreignKeyProperties, [CanBeNull] object entityType)
=> string.Format(
GetString("ForeignKeyPropertiesWrongEntity", nameof(foreignKeyProperties), nameof(entityType)),
foreignKeyProperties, entityType);
/// <summary>
/// The property '{property}' cannot be part of a foreign key on '{entityType}' because it has a store-generated value and is contained in the key {keyProperties} defined on a base entity type '{baseEntityType}'.
/// </summary>
public static string ForeignKeyPropertyInKey([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object keyProperties, [CanBeNull] object baseEntityType)
=> string.Format(
GetString("ForeignKeyPropertyInKey", nameof(property), nameof(entityType), nameof(keyProperties), nameof(baseEntityType)),
property, entityType, keyProperties, baseEntityType);
/// <summary>
/// The provided principal entity key '{principalKey}' is not a key on the entity type '{principalEntityType}'.
/// </summary>
public static string ForeignKeyReferencedEntityKeyMismatch([CanBeNull] object principalKey, [CanBeNull] object principalEntityType)
=> string.Format(
GetString("ForeignKeyReferencedEntityKeyMismatch", nameof(principalKey), nameof(principalEntityType)),
principalKey, principalEntityType);
/// <summary>
/// The foreign keys on entity type '{dependentType}' cannot target the same entity type because it is a weak entity type.
/// </summary>
public static string ForeignKeySelfReferencingDependentEntityType([CanBeNull] object dependentType)
=> string.Format(
GetString("ForeignKeySelfReferencingDependentEntityType", nameof(dependentType)),
dependentType);
/// <summary>
/// The types of the properties specified for the foreign key {foreignKeyProperties} on entity type '{dependentType}' do not match the types of the properties in the principal key {principalKey} on entity type '{principalType}'.
/// </summary>
public static string ForeignKeyTypeMismatch([CanBeNull] object foreignKeyProperties, [CanBeNull] object dependentType, [CanBeNull] object principalKey, [CanBeNull] object principalType)
=> string.Format(
GetString("ForeignKeyTypeMismatch", nameof(foreignKeyProperties), nameof(dependentType), nameof(principalKey), nameof(principalType)),
foreignKeyProperties, dependentType, principalKey, principalType);
/// <summary>
/// The foreign key {foreignKeyProperties} targeting the key {keyProperties} on '{principalType}' cannot be removed from the entity type '{entityType}' because it is defined on the entity type '{otherEntityType}'.
/// </summary>
public static string ForeignKeyWrongType([CanBeNull] object foreignKeyProperties, [CanBeNull] object keyProperties, [CanBeNull] object principalType, [CanBeNull] object entityType, [CanBeNull] object otherEntityType)
=> string.Format(
GetString("ForeignKeyWrongType", nameof(foreignKeyProperties), nameof(keyProperties), nameof(principalType), nameof(entityType), nameof(otherEntityType)),
foreignKeyProperties, keyProperties, principalType, entityType, otherEntityType);
/// <summary>
/// The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy when full change tracking notifications are required. Use 'ModelBuilder.HasChangeTrackingStrategy' in 'OnModelCreating' to configure all entity types in the model to use the '{fullStrategy}' or '{fullPlusStrategy}' strategy.
/// </summary>
public static string FullChangeTrackingRequired([CanBeNull] object entityType, [CanBeNull] object changeTrackingStrategy, [CanBeNull] object fullStrategy, [CanBeNull] object fullPlusStrategy)
=> string.Format(
GetString("FullChangeTrackingRequired", nameof(entityType), nameof(changeTrackingStrategy), nameof(fullStrategy), nameof(fullPlusStrategy)),
entityType, changeTrackingStrategy, fullStrategy, fullPlusStrategy);
/// <summary>
/// The '{methodName}' method is not supported because the query has switched to client-evaluation. This usually happens when the arguments to the method cannot be translated to server. Rewrite the query to avoid client evaluation of arguments so that method can be translated to server.
/// </summary>
public static string FunctionOnClient([CanBeNull] object methodName)
=> string.Format(
GetString("FunctionOnClient", nameof(methodName)),
methodName);
/// <summary>
/// The edge cannot be added because the graph does not contain vertex '{vertex}'.
/// </summary>
public static string GraphDoesNotContainVertex([CanBeNull] object vertex)
=> string.Format(
GetString("GraphDoesNotContainVertex", nameof(vertex)),
vertex);
/// <summary>
/// The block size used for Hi-Lo value generation must be positive. When the Hi-Lo generator is backed by a SQL sequence this means that the sequence increment must be positive.
/// </summary>
public static string HiLoBadBlockSize
=> GetString("HiLoBadBlockSize");
/// <summary>
/// A relationship cycle involving the primary keys of the following enitity types was detected: '{entityType}'. This would prevent any entity to be inserted without violating the store constraints. Review the foreign keys defined on the primary keys and either remove or use other properties for at least one of them.