-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathRelationalStrings.Designer.cs
4043 lines (3609 loc) · 243 KB
/
RelationalStrings.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 Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Internal;
using Microsoft.Extensions.Logging;
#nullable enable
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 RelationalStrings
{
private static readonly ResourceManager _resourceManager
= new ResourceManager("Microsoft.EntityFrameworkCore.Properties.RelationalStrings", typeof(RelationalStrings).Assembly);
/// <summary>
/// The corresponding CLR type for entity type '{entityType}' cannot be instantiated, but the entity type was mapped to '{storeObject}' using the 'TPC' mapping strategy. Only instantiable types should be mapped. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.
/// </summary>
public static string AbstractTpc(object? entityType, object? storeObject)
=> string.Format(
GetString("AbstractTpc", nameof(entityType), nameof(storeObject)),
entityType, storeObject);
/// <summary>
/// Unable to deserialize a sequence from model metadata. See inner exception for details.
/// </summary>
[Obsolete]
public static string BadSequenceString
=> GetString("BadSequenceString");
/// <summary>
/// Invalid type for sequence. Valid types are long (the default), int, short, byte and decimal.
/// </summary>
public static string BadSequenceType
=> GetString("BadSequenceType");
/// <summary>
/// The instance of DbConnection is currently in use. The connection can only be changed when the existing connection is not being used.
/// </summary>
public static string CannotChangeWhenOpen
=> GetString("CannotChangeWhenOpen");
/// <summary>
/// Comparing complex types to null is not supported.
/// </summary>
public static string CannotCompareComplexTypeToNull
=> GetString("CannotCompareComplexTypeToNull");
/// <summary>
/// You are attempting to project out complex type '{complexType}' via an optional navigation; that is currently not supported. Either project out the complex type in a non-optional context, or project the containing entity type along with the complex type.
/// </summary>
public static string CannotProjectNullableComplexType(object? complexType)
=> string.Format(
GetString("CannotProjectNullableComplexType", nameof(complexType)),
complexType);
/// <summary>
/// Join expressions have no aliases; set the alias on the enclosed table expression.
/// </summary>
public static string CannotSetAliasOnJoin
=> GetString("CannotSetAliasOnJoin");
/// <summary>
/// The query contained a new array expression containing non-constant elements, which could not be translated: '{newArrayExpression}'.
/// </summary>
public static string CannotTranslateNonConstantNewArrayExpression(object? newArrayExpression)
=> string.Format(
GetString("CannotTranslateNonConstantNewArrayExpression", nameof(newArrayExpression)),
newArrayExpression);
/// <summary>
/// Unable to translate the given 'GroupBy' pattern. Call 'AsEnumerable' before 'GroupBy' to evaluate it client-side.
/// </summary>
public static string ClientGroupByNotSupported
=> GetString("ClientGroupByNotSupported");
/// <summary>
/// The function '{function}' has a custom translation. Compiled model can't be generated, because custom function translations are not supported.
/// </summary>
public static string CompiledModelFunctionTranslation(object? function)
=> string.Format(
GetString("CompiledModelFunctionTranslation", nameof(function)),
function);
/// <summary>
/// The computed column SQL has not been specified for the column '{table}.{column}'. Specify the SQL before using Entity Framework to create the database schema.
/// </summary>
public static string ComputedColumnSqlUnspecified(object? table, object? column)
=> string.Format(
GetString("ComputedColumnSqlUnspecified", nameof(table), nameof(column)),
table, column);
/// <summary>
/// An ambient transaction has been detected. The ambient transaction needs to be completed before starting a new transaction on this connection.
/// </summary>
public static string ConflictingAmbientTransaction
=> GetString("ConflictingAmbientTransaction");
/// <summary>
/// {conflictingConfiguration} cannot be set for '{property}' at the same time as {existingConfiguration}. Remove one of these configurations.
/// </summary>
public static string ConflictingColumnServerGeneration(object? conflictingConfiguration, object? property, object? existingConfiguration)
=> string.Format(
GetString("ConflictingColumnServerGeneration", nameof(conflictingConfiguration), nameof(property), nameof(existingConfiguration)),
conflictingConfiguration, property, existingConfiguration);
/// <summary>
/// The connection is currently enlisted in a transaction. The enlisted transaction needs to be completed before starting a new transaction.
/// </summary>
public static string ConflictingEnlistedTransaction
=> GetString("ConflictingEnlistedTransaction");
/// <summary>
/// Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row, but have different original property values for the properties {firstProperty} and {secondProperty} mapped to '{column}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values.
/// </summary>
public static string ConflictingOriginalRowValues(object? firstEntityType, object? secondEntityType, object? firstProperty, object? secondProperty, object? column)
=> string.Format(
GetString("ConflictingOriginalRowValues", nameof(firstEntityType), nameof(secondEntityType), nameof(firstProperty), nameof(secondProperty), nameof(column)),
firstEntityType, secondEntityType, firstProperty, secondProperty, column);
/// <summary>
/// Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row with the key value '{keyValue}', but have different original property values {firstConflictingValues} and {secondConflictingValues} for the column '{column}'.
/// </summary>
public static string ConflictingOriginalRowValuesSensitive(object? firstEntityType, object? secondEntityType, object? keyValue, object? firstConflictingValues, object? secondConflictingValues, object? column)
=> string.Format(
GetString("ConflictingOriginalRowValuesSensitive", nameof(firstEntityType), nameof(secondEntityType), nameof(keyValue), nameof(firstConflictingValues), nameof(secondConflictingValues), nameof(column)),
firstEntityType, secondEntityType, keyValue, firstConflictingValues, secondConflictingValues, column);
/// <summary>
/// An instance of entity type '{firstEntityType}' is marked as '{firstState}', but an instance of entity type '{secondEntityType}' is marked as '{secondState}' and both are mapped to the same row. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values.
/// </summary>
public static string ConflictingRowUpdateTypes(object? firstEntityType, object? firstState, object? secondEntityType, object? secondState)
=> string.Format(
GetString("ConflictingRowUpdateTypes", nameof(firstEntityType), nameof(firstState), nameof(secondEntityType), nameof(secondState)),
firstEntityType, firstState, secondEntityType, secondState);
/// <summary>
/// The instance of entity type '{firstEntityType}' with the key value '{firstKeyValue}' is marked as '{firstState}', but the instance of entity type '{secondEntityType}' with the key value '{secondKeyValue}' is marked as '{secondState}' and both are mapped to the same row.
/// </summary>
public static string ConflictingRowUpdateTypesSensitive(object? firstEntityType, object? firstKeyValue, object? firstState, object? secondEntityType, object? secondKeyValue, object? secondState)
=> string.Format(
GetString("ConflictingRowUpdateTypesSensitive", nameof(firstEntityType), nameof(firstKeyValue), nameof(firstState), nameof(secondEntityType), nameof(secondKeyValue), nameof(secondState)),
firstEntityType, firstKeyValue, firstState, secondEntityType, secondKeyValue, secondState);
/// <summary>
/// Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row, but have different property values for the properties {firstProperty} and {secondProperty} mapped to '{column}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values.
/// </summary>
public static string ConflictingRowValues(object? firstEntityType, object? secondEntityType, object? firstProperty, object? secondProperty, object? column)
=> string.Format(
GetString("ConflictingRowValues", nameof(firstEntityType), nameof(secondEntityType), nameof(firstProperty), nameof(secondProperty), nameof(column)),
firstEntityType, secondEntityType, firstProperty, secondProperty, column);
/// <summary>
/// Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row with the key value '{keyValue}', but have different property values '{firstConflictingValue}' and '{secondConflictingValue}' for the column '{column}'.
/// </summary>
public static string ConflictingRowValuesSensitive(object? firstEntityType, object? secondEntityType, object? keyValue, object? firstConflictingValue, object? secondConflictingValue, object? column)
=> string.Format(
GetString("ConflictingRowValuesSensitive", nameof(firstEntityType), nameof(secondEntityType), nameof(keyValue), nameof(firstConflictingValue), nameof(secondConflictingValue), nameof(column)),
firstEntityType, secondEntityType, keyValue, firstConflictingValue, secondConflictingValue, column);
/// <summary>
/// A seed entity for entity type '{entityType}' has the same key value as another seed entity mapped to the same table '{table}', but have different values for the column '{column}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values.
/// </summary>
public static string ConflictingSeedValues(object? entityType, object? table, object? column)
=> string.Format(
GetString("ConflictingSeedValues", nameof(entityType), nameof(table), nameof(column)),
entityType, table, column);
/// <summary>
/// A seed entity for entity type '{entityType}' has the same key value {keyValue} as another seed entity mapped to the same table '{table}', but have different values for the column '{column}' - '{firstValue}', '{secondValue}'.
/// </summary>
public static string ConflictingSeedValuesSensitive(object? entityType, object? keyValue, object? table, object? column, object? firstValue, object? secondValue)
=> string.Format(
GetString("ConflictingSeedValuesSensitive", nameof(entityType), nameof(keyValue), nameof(table), nameof(column), nameof(firstValue), nameof(secondValue)),
entityType, keyValue, table, column, firstValue, secondValue);
/// <summary>
/// Conflicting type mappings were inferred for column '{column}'.
/// </summary>
public static string ConflictingTypeMappingsInferredForColumn(object? column)
=> string.Format(
GetString("ConflictingTypeMappingsInferredForColumn", nameof(column)),
column);
/// <summary>
/// {numSortOrderProperties} values were provided in CreateIndexOperations.IsDescending, but the operation has {numColumns} columns.
/// </summary>
public static string CreateIndexOperationWithInvalidSortOrder(object? numSortOrderProperties, object? numColumns)
=> string.Format(
GetString("CreateIndexOperationWithInvalidSortOrder", nameof(numSortOrderProperties), nameof(numColumns)),
numSortOrderProperties, numColumns);
/// <summary>
/// There is no property mapped to the column '{table}.{column}' which is used in a data operation. Either add a property mapped to this column, or specify the column types in the data operation.
/// </summary>
public static string DataOperationNoProperty(object? table, object? column)
=> string.Format(
GetString("DataOperationNoProperty", nameof(table), nameof(column)),
table, column);
/// <summary>
/// There is no entity type mapped to the table '{table}' which is used in a data operation. Either add the corresponding entity type to the model, or specify the column types in the data operation.
/// </summary>
public static string DataOperationNoTable(object? table)
=> string.Format(
GetString("DataOperationNoTable", nameof(table)),
table);
/// <summary>
/// The provided DbFunction expression '{expression}' is invalid. The expression must be a lambda expression containing a single method call to the target static method. Default values can be provided as arguments if required, e.g. '() => SomeClass.SomeMethod(null, 0)'
/// </summary>
public static string DbFunctionExpressionIsNotMethodCall(object? expression)
=> string.Format(
GetString("DbFunctionExpressionIsNotMethodCall", nameof(expression)),
expression);
/// <summary>
/// The DbFunction '{function}' is generic. Mapping generic methods as a DbFunction is not supported.
/// </summary>
public static string DbFunctionGenericMethodNotSupported(object? function)
=> string.Format(
GetString("DbFunctionGenericMethodNotSupported", nameof(function)),
function);
/// <summary>
/// The DbFunction '{function}' defined on type '{type}' must be either a static method or an instance method defined on a DbContext subclass. Instance methods on other types are not supported.
/// </summary>
public static string DbFunctionInvalidInstanceType(object? function, object? type)
=> string.Format(
GetString("DbFunctionInvalidInstanceType", nameof(function), nameof(type)),
function, type);
/// <summary>
/// The DbFunction '{function}' has an invalid return type '{type}'. Owned entity types cannot be used as the return type of a DbFunction.
/// </summary>
public static string DbFunctionInvalidIQueryableOwnedReturnType(object? function, object? type)
=> string.Format(
GetString("DbFunctionInvalidIQueryableOwnedReturnType", nameof(function), nameof(type)),
function, type);
/// <summary>
/// The DbFunction '{function}' has an invalid return type '{type}'. Non-scalar functions must return 'IQueryable' of a valid entity type.
/// </summary>
public static string DbFunctionInvalidIQueryableReturnType(object? function, object? type)
=> string.Format(
GetString("DbFunctionInvalidIQueryableReturnType", nameof(function), nameof(type)),
function, type);
/// <summary>
/// The DbFunction '{function}' does not have a parameter named '{parameter}'.
/// </summary>
public static string DbFunctionInvalidParameterName(object? function, object? parameter)
=> string.Format(
GetString("DbFunctionInvalidParameterName", nameof(function), nameof(parameter)),
function, parameter);
/// <summary>
/// The parameter '{parameter}' for the DbFunction '{function}' has an invalid type '{type}'. Ensure the parameter type can be mapped by the current provider.
/// </summary>
public static string DbFunctionInvalidParameterType(object? parameter, object? function, object? type)
=> string.Format(
GetString("DbFunctionInvalidParameterType", nameof(parameter), nameof(function), nameof(type)),
parameter, function, type);
/// <summary>
/// The DbFunction '{function}' returns '{type}', but '{elementType}' is not a mapped entity type. Ensure that '{elementType}' is included in the model.
/// </summary>
public static string DbFunctionInvalidReturnEntityType(object? function, object? type, object? elementType)
=> string.Format(
GetString("DbFunctionInvalidReturnEntityType", nameof(function), nameof(type), nameof(elementType)),
function, type, elementType);
/// <summary>
/// The DbFunction '{function}' has an invalid return type '{type}'. Ensure that the return type can be mapped by the current provider.
/// </summary>
public static string DbFunctionInvalidReturnType(object? function, object? type)
=> string.Format(
GetString("DbFunctionInvalidReturnType", nameof(function), nameof(type)),
function, type);
/// <summary>
/// Cannot set custom translation on the DbFunction '{function}' since it is not a scalar function.
/// </summary>
public static string DbFunctionNonScalarCustomTranslation(object? function)
=> string.Format(
GetString("DbFunctionNonScalarCustomTranslation", nameof(function)),
function);
/// <summary>
/// The DbFunction '{function}' returns a SqlExpression of type '{type}', which is a nullable value type. DbFunctions must return expressions with non-nullable value types, even when they may return null.
/// </summary>
public static string DbFunctionNullableValueReturnType(object? function, object? type)
=> string.Format(
GetString("DbFunctionNullableValueReturnType", nameof(function), nameof(type)),
function, type);
/// <summary>
/// The default value SQL has not been specified for the column '{table}.{column}'. Specify the SQL before using Entity Framework to create the database schema.
/// </summary>
public static string DefaultValueSqlUnspecified(object? table, object? column)
=> string.Format(
GetString("DefaultValueSqlUnspecified", nameof(table), nameof(column)),
table, column);
/// <summary>
/// The default value has not been specified for the column '{table}.{column}'. Specify a value before using Entity Framework to create the database schema.
/// </summary>
public static string DefaultValueUnspecified(object? table, object? column)
=> string.Format(
GetString("DefaultValueUnspecified", nameof(table), nameof(column)),
table, column);
/// <summary>
/// The data deletion operation on '{table}' is not associated with a model. Either add a model to the migration, or specify the column types in all data operations.
/// </summary>
public static string DeleteDataOperationNoModel(object? table)
=> string.Format(
GetString("DeleteDataOperationNoModel", nameof(table)),
table);
/// <summary>
/// The number of key column types ({typesCount}) doesn't match the number of key columns ({columnsCount}) for the data deletion operation on '{table}'. Provide the same number of key column types and key columns.
/// </summary>
public static string DeleteDataOperationTypesCountMismatch(object? typesCount, object? columnsCount, object? table)
=> string.Format(
GetString("DeleteDataOperationTypesCountMismatch", nameof(typesCount), nameof(columnsCount), nameof(table)),
typesCount, columnsCount, table);
/// <summary>
/// The number of key values ({valuesCount}) doesn't match the number of key columns ({columnsCount}) for the data deletion operation on '{table}'. Provide the same number of key values and key columns.
/// </summary>
public static string DeleteDataOperationValuesCountMismatch(object? valuesCount, object? columnsCount, object? table)
=> string.Format(
GetString("DeleteDataOperationValuesCountMismatch", nameof(valuesCount), nameof(columnsCount), nameof(table)),
valuesCount, columnsCount, table);
/// <summary>
/// The derived entity type '{entityType}' was configured with the '{strategy}' mapping strategy. Only the root entity type should be configured with a mapping strategy. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.
/// </summary>
public static string DerivedStrategy(object? entityType, object? strategy)
=> string.Format(
GetString("DerivedStrategy", nameof(entityType), nameof(strategy)),
entityType, strategy);
/// <summary>
/// Using 'Distinct' operation on a projection containing a collection is not supported.
/// </summary>
public static string DistinctOnCollectionNotSupported
=> GetString("DistinctOnCollectionNotSupported");
/// <summary>
/// The check constraint '{checkConstraint}' cannot be added to the entity type '{entityType}' because another check constraint with the same name already exists on entity type '{conflictingEntityType}'.
/// </summary>
public static string DuplicateCheckConstraint(object? checkConstraint, object? entityType, object? conflictingEntityType)
=> string.Format(
GetString("DuplicateCheckConstraint", nameof(checkConstraint), nameof(entityType), nameof(conflictingEntityType)),
checkConstraint, entityType, conflictingEntityType);
/// <summary>
/// The check constraints '{checkConstraint1}' on '{entityType1}' and '{checkConstraint2}' on '{entityType2}' are both mapped to '{checkConstraintName}', but with different defining SQL.
/// </summary>
public static string DuplicateCheckConstraintSqlMismatch(object? checkConstraint1, object? entityType1, object? checkConstraint2, object? entityType2, object? checkConstraintName)
=> string.Format(
GetString("DuplicateCheckConstraintSqlMismatch", nameof(checkConstraint1), nameof(entityType1), nameof(checkConstraint2), nameof(entityType2), nameof(checkConstraintName)),
checkConstraint1, entityType1, checkConstraint2, entityType2, checkConstraintName);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different collations ('{collation1}' and '{collation2}').
/// </summary>
public static string DuplicateColumnNameCollationMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? collation1, object? collation2)
=> string.Format(
GetString("DuplicateColumnNameCollationMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(collation1), nameof(collation2)),
entityType1, property1, entityType2, property2, columnName, table, collation1, collation2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different comments ('{comment1}' and '{comment2}').
/// </summary>
public static string DuplicateColumnNameCommentMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? comment1, object? comment2)
=> string.Format(
GetString("DuplicateColumnNameCommentMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(comment1), nameof(comment2)),
entityType1, property1, entityType2, property2, columnName, table, comment1, comment2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different computed values ('{value1}' and '{value2}').
/// </summary>
public static string DuplicateColumnNameComputedSqlMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? value1, object? value2)
=> string.Format(
GetString("DuplicateColumnNameComputedSqlMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(value1), nameof(value2)),
entityType1, property1, entityType2, property2, columnName, table, value1, value2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but have different concurrency token configurations.
/// </summary>
public static string DuplicateColumnNameConcurrencyTokenMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
=> string.Format(
GetString("DuplicateColumnNameConcurrencyTokenMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table)),
entityType1, property1, entityType2, property2, columnName, table);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different data types ('{dataType1}' and '{dataType2}').
/// </summary>
public static string DuplicateColumnNameDataTypeMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? dataType1, object? dataType2)
=> string.Format(
GetString("DuplicateColumnNameDataTypeMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(dataType1), nameof(dataType2)),
entityType1, property1, entityType2, property2, columnName, table, dataType1, dataType2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different default values ('{value1}' and '{value2}').
/// </summary>
public static string DuplicateColumnNameDefaultSqlMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? value1, object? value2)
=> string.Format(
GetString("DuplicateColumnNameDefaultSqlMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(value1), nameof(value2)),
entityType1, property1, entityType2, property2, columnName, table, value1, value2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but have different fixed length configuration.
/// </summary>
public static string DuplicateColumnNameFixedLengthMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
=> string.Format(
GetString("DuplicateColumnNameFixedLengthMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table)),
entityType1, property1, entityType2, property2, columnName, table);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different stored computed column settings ('{value1}' and '{value2}').
/// </summary>
public static string DuplicateColumnNameIsStoredMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? value1, object? value2)
=> string.Format(
GetString("DuplicateColumnNameIsStoredMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(value1), nameof(value2)),
entityType1, property1, entityType2, property2, columnName, table, value1, value2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different maximum lengths ('{maxLength1}' and '{maxLength2}').
/// </summary>
public static string DuplicateColumnNameMaxLengthMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? maxLength1, object? maxLength2)
=> string.Format(
GetString("DuplicateColumnNameMaxLengthMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(maxLength1), nameof(maxLength2)),
entityType1, property1, entityType2, property2, columnName, table, maxLength1, maxLength2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different column nullability settings.
/// </summary>
public static string DuplicateColumnNameNullabilityMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
=> string.Format(
GetString("DuplicateColumnNameNullabilityMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table)),
entityType1, property1, entityType2, property2, columnName, table);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different column orders ('{columnOrder1}' and '{columnOrder2}').
/// </summary>
public static string DuplicateColumnNameOrderMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? columnOrder1, object? columnOrder2)
=> string.Format(
GetString("DuplicateColumnNameOrderMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(columnOrder1), nameof(columnOrder2)),
entityType1, property1, entityType2, property2, columnName, table, columnOrder1, columnOrder2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different precisions ('{precision1}' and '{precision2}').
/// </summary>
public static string DuplicateColumnNamePrecisionMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? precision1, object? precision2)
=> string.Format(
GetString("DuplicateColumnNamePrecisionMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(precision1), nameof(precision2)),
entityType1, property1, entityType2, property2, columnName, table, precision1, precision2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use differing provider types ('{type1}' and '{type2}').
/// </summary>
public static string DuplicateColumnNameProviderTypeMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? type1, object? type2)
=> string.Format(
GetString("DuplicateColumnNameProviderTypeMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(type1), nameof(type2)),
entityType1, property1, entityType2, property2, columnName, table, type1, type2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but the properties are contained within the same hierarchy. All properties on an entity type must be mapped to unique different columns.
/// </summary>
public static string DuplicateColumnNameSameHierarchy(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
=> string.Format(
GetString("DuplicateColumnNameSameHierarchy", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table)),
entityType1, property1, entityType2, property2, columnName, table);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different scales ('{scale1}' and '{scale2}').
/// </summary>
public static string DuplicateColumnNameScaleMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? scale1, object? scale2)
=> string.Format(
GetString("DuplicateColumnNameScaleMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table), nameof(scale1), nameof(scale2)),
entityType1, property1, entityType2, property2, columnName, table, scale1, scale2);
/// <summary>
/// '{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but have different unicode configurations.
/// </summary>
public static string DuplicateColumnNameUnicodenessMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
=> string.Format(
GetString("DuplicateColumnNameUnicodenessMismatch", nameof(entityType1), nameof(property1), nameof(entityType2), nameof(property2), nameof(columnName), nameof(table)),
entityType1, property1, entityType2, property2, columnName, table);
/// <summary>
/// The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but use different columns ({columnNames1} and {columnNames2}).
/// </summary>
public static string DuplicateForeignKeyColumnMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? columnNames1, object? columnNames2)
=> string.Format(
GetString("DuplicateForeignKeyColumnMismatch", nameof(foreignKeyProperties1), nameof(entityType1), nameof(foreignKeyProperties2), nameof(entityType2), nameof(table), nameof(foreignKeyName), nameof(columnNames1), nameof(columnNames2)),
foreignKeyProperties1, entityType1, foreignKeyProperties2, entityType2, table, foreignKeyName, columnNames1, columnNames2);
/// <summary>
/// The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but configured with different delete behavior ('{deleteBehavior1}' and '{deleteBehavior2}').
/// </summary>
public static string DuplicateForeignKeyDeleteBehaviorMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? deleteBehavior1, object? deleteBehavior2)
=> string.Format(
GetString("DuplicateForeignKeyDeleteBehaviorMismatch", nameof(foreignKeyProperties1), nameof(entityType1), nameof(foreignKeyProperties2), nameof(entityType2), nameof(table), nameof(foreignKeyName), nameof(deleteBehavior1), nameof(deleteBehavior2)),
foreignKeyProperties1, entityType1, foreignKeyProperties2, entityType2, table, foreignKeyName, deleteBehavior1, deleteBehavior2);
/// <summary>
/// The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but referencing different principal columns ({principalColumnNames1} and {principalColumnNames2}).
/// </summary>
public static string DuplicateForeignKeyPrincipalColumnMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? principalColumnNames1, object? principalColumnNames2)
=> string.Format(
GetString("DuplicateForeignKeyPrincipalColumnMismatch", nameof(foreignKeyProperties1), nameof(entityType1), nameof(foreignKeyProperties2), nameof(entityType2), nameof(table), nameof(foreignKeyName), nameof(principalColumnNames1), nameof(principalColumnNames2)),
foreignKeyProperties1, entityType1, foreignKeyProperties2, entityType2, table, foreignKeyName, principalColumnNames1, principalColumnNames2);
/// <summary>
/// The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but referencing different principal tables ('{principalTable1}' and '{principalTable2}').
/// </summary>
public static string DuplicateForeignKeyPrincipalTableMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? principalTable1, object? principalTable2)
=> string.Format(
GetString("DuplicateForeignKeyPrincipalTableMismatch", nameof(foreignKeyProperties1), nameof(entityType1), nameof(foreignKeyProperties2), nameof(entityType2), nameof(table), nameof(foreignKeyName), nameof(principalTable1), nameof(principalTable2)),
foreignKeyProperties1, entityType1, foreignKeyProperties2, entityType2, table, foreignKeyName, principalTable1, principalTable2);
/// <summary>
/// The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{foreignKeyName}', but are declared on different tables ('{table1}' and '{table2}').
/// </summary>
public static string DuplicateForeignKeyTableMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? foreignKeyName, object? table1, object? table2)
=> string.Format(
GetString("DuplicateForeignKeyTableMismatch", nameof(foreignKeyProperties1), nameof(entityType1), nameof(foreignKeyProperties2), nameof(entityType2), nameof(foreignKeyName), nameof(table1), nameof(table2)),
foreignKeyProperties1, entityType1, foreignKeyProperties2, entityType2, foreignKeyName, table1, table2);
/// <summary>
/// The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but with different uniqueness configurations.
/// </summary>
public static string DuplicateForeignKeyUniquenessMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName)
=> string.Format(
GetString("DuplicateForeignKeyUniquenessMismatch", nameof(foreignKeyProperties1), nameof(entityType1), nameof(foreignKeyProperties2), nameof(entityType2), nameof(table), nameof(foreignKeyName)),
foreignKeyProperties1, entityType1, foreignKeyProperties2, entityType2, table, foreignKeyName);
/// <summary>
/// The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different columns ({columnNames1} and {columnNames2}).
/// </summary>
public static string DuplicateIndexColumnMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName, object? columnNames1, object? columnNames2)
=> string.Format(
GetString("DuplicateIndexColumnMismatch", nameof(index1), nameof(entityType1), nameof(index2), nameof(entityType2), nameof(table), nameof(indexName), nameof(columnNames1), nameof(columnNames2)),
index1, entityType1, index2, entityType2, table, indexName, columnNames1, columnNames2);
/// <summary>
/// The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different filters ('{filter1}' and '{filter2}').
/// </summary>
public static string DuplicateIndexFiltersMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName, object? filter1, object? filter2)
=> string.Format(
GetString("DuplicateIndexFiltersMismatch", nameof(index1), nameof(entityType1), nameof(index2), nameof(entityType2), nameof(table), nameof(indexName), nameof(filter1), nameof(filter2)),
index1, entityType1, index2, entityType2, table, indexName, filter1, filter2);
/// <summary>
/// The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different sort orders.
/// </summary>
public static string DuplicateIndexSortOrdersMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName)
=> string.Format(
GetString("DuplicateIndexSortOrdersMismatch", nameof(index1), nameof(entityType1), nameof(index2), nameof(entityType2), nameof(table), nameof(indexName)),
index1, entityType1, index2, entityType2, table, indexName);
/// <summary>
/// The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{indexName}', but are declared on different tables ('{table1}' and '{table2}').
/// </summary>
public static string DuplicateIndexTableMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? indexName, object? table1, object? table2)
=> string.Format(
GetString("DuplicateIndexTableMismatch", nameof(index1), nameof(entityType1), nameof(index2), nameof(entityType2), nameof(indexName), nameof(table1), nameof(table2)),
index1, entityType1, index2, entityType2, indexName, table1, table2);
/// <summary>
/// The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different uniqueness configurations.
/// </summary>
public static string DuplicateIndexUniquenessMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName)
=> string.Format(
GetString("DuplicateIndexUniquenessMismatch", nameof(index1), nameof(entityType1), nameof(index2), nameof(entityType2), nameof(table), nameof(indexName)),
index1, entityType1, index2, entityType2, table, indexName);
/// <summary>
/// The keys {keyProperties1} on '{entityType1}' and {keyProperties2} on '{entityType2}' are both mapped to '{table}.{keyName}', but with different columns ({columnNames1} and {columnNames2}).
/// </summary>
public static string DuplicateKeyColumnMismatch(object? keyProperties1, object? entityType1, object? keyProperties2, object? entityType2, object? table, object? keyName, object? columnNames1, object? columnNames2)
=> string.Format(
GetString("DuplicateKeyColumnMismatch", nameof(keyProperties1), nameof(entityType1), nameof(keyProperties2), nameof(entityType2), nameof(table), nameof(keyName), nameof(columnNames1), nameof(columnNames2)),
keyProperties1, entityType1, keyProperties2, entityType2, table, keyName, columnNames1, columnNames2);
/// <summary>
/// The keys {keyProperties1} on '{entityType1}' and {keyProperties2} on '{entityType2}' are both mapped to '{keyName}', but on different tables ('{table1}' and '{table2}').
/// </summary>
public static string DuplicateKeyTableMismatch(object? keyProperties1, object? entityType1, object? keyProperties2, object? entityType2, object? keyName, object? table1, object? table2)
=> string.Format(
GetString("DuplicateKeyTableMismatch", nameof(keyProperties1), nameof(entityType1), nameof(keyProperties2), nameof(entityType2), nameof(keyName), nameof(table1), nameof(table2)),
keyProperties1, entityType1, keyProperties2, entityType2, keyName, table1, table2);
/// <summary>
/// A seed entity for entity type '{entityType}' has the same key value as another seed entity mapped to the same table '{table}'. Key values should be unique across seed entities. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values.
/// </summary>
public static string DuplicateSeedData(object? entityType, object? table)
=> string.Format(
GetString("DuplicateSeedData", nameof(entityType), nameof(table)),
entityType, table);
/// <summary>
/// A seed entity for entity type '{entityType}' has the same key value {keyValue} as another seed entity mapped to the same table '{table}'. Key values should be unique across seed entities.
/// </summary>
public static string DuplicateSeedDataSensitive(object? entityType, object? keyValue, object? table)
=> string.Format(
GetString("DuplicateSeedDataSensitive", nameof(entityType), nameof(keyValue), nameof(table)),
entityType, keyValue, table);
/// <summary>
/// Empty collections are not supported as inline query roots.
/// </summary>
public static string EmptyCollectionNotSupportedAsInlineQueryRoot
=> GetString("EmptyCollectionNotSupportedAsInlineQueryRoot");
/// <summary>
/// The short name for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy must have a unique short name. Either rename one of the types or call modelBuilder.Entity<TEntity>().Metadata.SetDiscriminatorValue("NewShortName").
/// </summary>
public static string EntityShortNameNotUnique(object? entityType1, object? discriminatorValue, object? entityType2)
=> string.Format(
GetString("EntityShortNameNotUnique", nameof(entityType1), nameof(discriminatorValue), nameof(entityType2)),
entityType1, discriminatorValue, entityType2);
/// <summary>
/// Entity type '{entityType}' has a split mapping for '{storeObject}', but is it also mapped to the same object. Split mappings should not duplicate the main mapping.
/// </summary>
public static string EntitySplittingConflictingMainFragment(object? entityType, object? storeObject)
=> string.Format(
GetString("EntitySplittingConflictingMainFragment", nameof(entityType), nameof(storeObject)),
entityType, storeObject);
/// <summary>
/// Entity type '{entityType}' has a split mapping for '{storeObject}', but it also participates in an entity type hierarchy. Split mappings are not supported for hierarchies.
/// </summary>
public static string EntitySplittingHierarchy(object? entityType, object? storeObject)
=> string.Format(
GetString("EntitySplittingHierarchy", nameof(entityType), nameof(storeObject)),
entityType, storeObject);
/// <summary>
/// Entity type '{entityType}' has a split mapping for '{storeObject}', but the primary key properties aren't fully mapped. Map all primary key properties to columns on '{storeObject}'.
/// </summary>
public static string EntitySplittingMissingPrimaryKey(object? entityType, object? storeObject)
=> string.Format(
GetString("EntitySplittingMissingPrimaryKey", nameof(entityType), nameof(storeObject)),
entityType, storeObject);
/// <summary>
/// Entity type '{entityType}' has a split mapping for '{storeObject}', but it doesn't map any non-primary key property to it. Map at least one non-primary key property to a column on '{storeObject}'.
/// </summary>
public static string EntitySplittingMissingProperties(object? entityType, object? storeObject)
=> string.Format(
GetString("EntitySplittingMissingProperties", nameof(entityType), nameof(storeObject)),
entityType, storeObject);
/// <summary>
/// Entity type '{entityType}' has a split mapping, but it doesn't map any non-primary key property to the main store object. Keep at least one non-primary key property mapped to a column on '{storeObject}'.
/// </summary>
public static string EntitySplittingMissingPropertiesMainFragment(object? entityType, object? storeObject)
=> string.Format(
GetString("EntitySplittingMissingPropertiesMainFragment", nameof(entityType), nameof(storeObject)),
entityType, storeObject);
/// <summary>
/// Entity type '{entityType}' has a split mapping and is an optional dependent sharing a store object, but it doesn't map any required non-shared property to the main store object. Keep at least one required non-shared property mapped to a column on '{storeObject}' or mark '{entityType}' as a required dependent by calling '{requiredDependentConfig}'.
/// </summary>
public static string EntitySplittingMissingRequiredPropertiesOptionalDependent(object? entityType, object? storeObject, object? requiredDependentConfig)
=> string.Format(
GetString("EntitySplittingMissingRequiredPropertiesOptionalDependent", nameof(entityType), nameof(storeObject), nameof(requiredDependentConfig)),
entityType, storeObject, requiredDependentConfig);
/// <summary>
/// Entity type '{entityType}' has a split mapping for '{storeObject}', but it doesn't have a main mapping of the same type. Map '{entityType}' to '{storeObjectType}'.
/// </summary>
public static string EntitySplittingUnmappedMainFragment(object? entityType, object? storeObject, object? storeObjectType)
=> string.Format(
GetString("EntitySplittingUnmappedMainFragment", nameof(entityType), nameof(storeObject), nameof(storeObjectType)),
entityType, storeObject, storeObjectType);
/// <summary>
/// Entity type '{entityType}' has a split mapping for '{storeObject}' that is shared with the entity type '{principalEntityType}', but the main mappings of these types do not share a table. Map the split fragments of '{entityType}' to non-shared tables or map the main fragment to '{principalStoreObject}'.
/// </summary>
public static string EntitySplittingUnmatchedMainTableSplitting(object? entityType, object? storeObject, object? principalEntityType, object? principalStoreObject)
=> string.Format(
GetString("EntitySplittingUnmatchedMainTableSplitting", nameof(entityType), nameof(storeObject), nameof(principalEntityType), nameof(principalStoreObject)),
entityType, storeObject, principalEntityType, principalStoreObject);
/// <summary>
/// An error occurred while reading a database value for property '{entityType}.{property}'. See the inner exception for more information.
/// </summary>
public static string ErrorMaterializingProperty(object? entityType, object? property)
=> string.Format(
GetString("ErrorMaterializingProperty", nameof(entityType), nameof(property)),
entityType, property);
/// <summary>
/// An error occurred while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was null.
/// </summary>
public static string ErrorMaterializingPropertyNullReference(object? entityType, object? property, object? expectedType)
=> string.Format(
GetString("ErrorMaterializingPropertyNullReference", nameof(entityType), nameof(property), nameof(expectedType)),
entityType, property, expectedType);
/// <summary>
/// An error occurred while reading a database value. See the inner exception for more information.
/// </summary>
public static string ErrorMaterializingValue
=> GetString("ErrorMaterializingValue");
/// <summary>
/// An error occurred while reading a database value. The expected type was '{expectedType}' but the actual value was of type '{actualType}'.
/// </summary>
public static string ErrorMaterializingValueInvalidCast(object? expectedType, object? actualType)
=> string.Format(
GetString("ErrorMaterializingValueInvalidCast", nameof(expectedType), nameof(actualType)),
expectedType, actualType);
/// <summary>
/// An error occurred while reading a database value. The expected type was '{expectedType}' but the actual value was null.
/// </summary>
public static string ErrorMaterializingValueNullReference(object? expectedType)
=> string.Format(
GetString("ErrorMaterializingValueNullReference", nameof(expectedType)),
expectedType);
/// <summary>
/// The operation 'ExecuteDelete' requires an entity type which corresponds to the database table to be modified. The current operation is being applied on a non-entity projection. Remove any projection to non-entity types.
/// </summary>
public static string ExecuteDeleteOnNonEntityType
=> GetString("ExecuteDeleteOnNonEntityType");
/// <summary>
/// The operation 'ExecuteDelete' is being applied on the table '{tableName}' which contains data for multiple entity types. Applying this delete operation will also delete data for other entity type(s), hence it is not supported.
/// </summary>
public static string ExecuteDeleteOnTableSplitting(object? tableName)
=> string.Format(
GetString("ExecuteDeleteOnTableSplitting", nameof(tableName)),
tableName);
/// <summary>
/// The operation '{operation}' is being applied on entity type '{entityType}', which uses entity splitting. 'ExecuteDelete'/'ExecuteUpdate' operations on entity types using entity splitting is not supported.
/// </summary>
public static string ExecuteOperationOnEntitySplitting(object? operation, object? entityType)
=> string.Format(
GetString("ExecuteOperationOnEntitySplitting", nameof(operation), nameof(entityType)),
operation, entityType);
/// <summary>
/// The operation '{operation}' cannot be performed on keyless entity type '{entityType}', since it contains an operator not natively supported by the database provider.
/// </summary>
public static string ExecuteOperationOnKeylessEntityTypeWithUnsupportedOperator(object? operation, object? entityType)
=> string.Format(
GetString("ExecuteOperationOnKeylessEntityTypeWithUnsupportedOperator", nameof(operation), nameof(entityType)),
operation, entityType);
/// <summary>
/// The operation '{operation}' is being applied on entity type '{entityType}', which is using the TPC mapping strategy and is not a leaf type. 'ExecuteDelete'/'ExecuteUpdate' operations on entity types participating in TPC hierarchies is only supported for leaf types.
/// </summary>
public static string ExecuteOperationOnTPC(object? operation, object? entityType)
=> string.Format(
GetString("ExecuteOperationOnTPC", nameof(operation), nameof(entityType)),
operation, entityType);
/// <summary>
/// The operation '{operation}' is being applied on entity type '{entityType}', which is using the TPT mapping strategy. 'ExecuteDelete'/'ExecuteUpdate' operations on hierarchies mapped as TPT is not supported.
/// </summary>
public static string ExecuteOperationOnTPT(object? operation, object? entityType)
=> string.Format(
GetString("ExecuteOperationOnTPT", nameof(operation), nameof(entityType)),
operation, entityType);
/// <summary>
/// The operation '{operation}' contains a select expression feature that isn't supported in the query SQL generator, but has been declared as supported by provider during translation phase. This is a bug in your EF Core provider, please file an issue.
/// </summary>
public static string ExecuteOperationWithUnsupportedOperatorInSqlGeneration(object? operation)
=> string.Format(
GetString("ExecuteOperationWithUnsupportedOperatorInSqlGeneration", nameof(operation)),
operation);
/// <summary>
/// ExecuteUpdate is being used over a LINQ operator which isn't natively supported by the database; this cannot be translated because complex type '{complexType}' is projected out. Rewrite your query to project out the containing entity type instead.
/// </summary>
public static string ExecuteUpdateSubqueryNotSupportedOverComplexTypes(object? complexType)
=> string.Format(
GetString("ExecuteUpdateSubqueryNotSupportedOverComplexTypes", nameof(complexType)),
complexType);
/// <summary>
/// The required column '{column}' was not present in the results of a 'FromSql' operation.
/// </summary>
public static string FromSqlMissingColumn(object? column)
=> string.Format(
GetString("FromSqlMissingColumn", nameof(column)),
column);
/// <summary>
/// 'FromSql' or 'SqlQuery' was called with non-composable SQL and with a query composing over it. Consider calling 'AsEnumerable' after the method to perform the composition on the client side.
/// </summary>
public static string FromSqlNonComposable
=> GetString("FromSqlNonComposable");
/// <summary>
/// The property '{propertySpecification}' has specific configuration for the function '{function}', but it isn't mapped to a column on that function return. Remove the specific configuration, or map an entity type that contains this property to '{function}'.
/// </summary>
public static string FunctionOverrideMismatch(object? propertySpecification, object? function)
=> string.Format(
GetString("FunctionOverrideMismatch", nameof(propertySpecification), nameof(function)),
propertySpecification, function);
/// <summary>
/// Can't use HasData for entity type '{entity}'. HasData is not supported for entities mapped to JSON.
/// </summary>
public static string HasDataNotSupportedForEntitiesMappedToJson(object? entity)
=> string.Format(
GetString("HasDataNotSupportedForEntitiesMappedToJson", nameof(entity)),
entity);
/// <summary>
/// Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and the comment '{comment}' does not match the comment '{otherComment}'.
/// </summary>
public static string IncompatibleTableCommentMismatch(object? table, object? entityType, object? otherEntityType, object? comment, object? otherComment)
=> string.Format(
GetString("IncompatibleTableCommentMismatch", nameof(table), nameof(entityType), nameof(otherEntityType), nameof(comment), nameof(otherComment)),
table, entityType, otherEntityType, comment, otherComment);
/// <summary>
/// Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and there is a relationship between their primary keys in which '{entityType}' is the dependent, but '{entityType}' has a base entity type mapped to a different table. Either map '{otherEntityType}' to a different table, or invert the relationship between '{entityType}' and '{otherEntityType}'.
/// </summary>
public static string IncompatibleTableDerivedRelationship(object? table, object? entityType, object? otherEntityType)
=> string.Format(
GetString("IncompatibleTableDerivedRelationship", nameof(table), nameof(entityType), nameof(otherEntityType)),
table, entityType, otherEntityType);
/// <summary>
/// Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and is excluded from migrations on one entity type but not on the other. Exclude the table from migrations on all entity types mapped to the table.
/// </summary>
public static string IncompatibleTableExcludedMismatch(object? table, object? entityType, object? otherEntityType)
=> string.Format(
GetString("IncompatibleTableExcludedMismatch", nameof(table), nameof(entityType), nameof(otherEntityType)),
table, entityType, otherEntityType);
/// <summary>
/// Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and the name '{keyName}' of the primary key {primaryKey} does not match the name '{otherName}' of the primary key {otherPrimaryKey}.
/// </summary>
public static string IncompatibleTableKeyNameMismatch(object? table, object? entityType, object? otherEntityType, object? keyName, object? primaryKey, object? otherName, object? otherPrimaryKey)
=> string.Format(
GetString("IncompatibleTableKeyNameMismatch", nameof(table), nameof(entityType), nameof(otherEntityType), nameof(keyName), nameof(primaryKey), nameof(otherName), nameof(otherPrimaryKey)),
table, entityType, otherEntityType, keyName, primaryKey, otherName, otherPrimaryKey);
/// <summary>
/// Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and potentially other entity types, but there is no linking relationship. Add a foreign key to '{entityType}' on the primary key properties and pointing to the primary key on another entity type mapped to '{table}'.
/// </summary>
public static string IncompatibleTableNoRelationship(object? table, object? entityType, object? otherEntityType)
=> string.Format(
GetString("IncompatibleTableNoRelationship", nameof(table), nameof(entityType), nameof(otherEntityType)),
table, entityType, otherEntityType);
/// <summary>
/// Cannot use view '{view}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and there is a relationship between their primary keys in which '{entityType}' is the dependent, but '{entityType}' has a base entity type mapped to a different view. Either map '{otherEntityType}' to a different view, or invert the relationship between '{entityType}' and '{otherEntityType}'.
/// </summary>
public static string IncompatibleViewDerivedRelationship(object? view, object? entityType, object? otherEntityType)
=> string.Format(
GetString("IncompatibleViewDerivedRelationship", nameof(view), nameof(entityType), nameof(otherEntityType)),
view, entityType, otherEntityType);
/// <summary>
/// Cannot use view '{view}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and there is no relationship between their primary keys.
/// </summary>
public static string IncompatibleViewNoRelationship(object? view, object? entityType, object? otherEntityType)
=> string.Format(
GetString("IncompatibleViewNoRelationship", nameof(view), nameof(entityType), nameof(otherEntityType)),
view, entityType, otherEntityType);
/// <summary>
/// '{name}' was constructed with {argumentCount} arguments, but the nullability was defined for {argumentNullabilityCount} arguments. When in doubt use 'false' for nullability argument.
/// </summary>
public static string InconsistentNumberOfArguments(object? name, object? argumentCount, object? argumentNullabilityCount)
=> string.Format(
GetString("InconsistentNumberOfArguments", nameof(name), nameof(argumentCount), nameof(argumentNullabilityCount)),
name, argumentCount, argumentNullabilityCount);
/// <summary>
/// Cannot set default value '{value}' of type '{valueType}' on property '{property}' of type '{propertyType}' in entity type '{entityType}'.
/// </summary>
public static string IncorrectDefaultValueType(object? value, object? valueType, object? property, object? propertyType, object? entityType)
=> string.Format(
GetString("IncorrectDefaultValueType", nameof(value), nameof(valueType), nameof(property), nameof(propertyType), nameof(entityType)),
value, valueType, property, propertyType, entityType);
/// <summary>
/// The data insertion operation on '{table}' is not associated with a model. Either add a model to the migration, or specify the column types in all data operations.
/// </summary>
public static string InsertDataOperationNoModel(object? table)
=> string.Format(
GetString("InsertDataOperationNoModel", nameof(table)),
table);
/// <summary>
/// The number of column types ({typesCount}) doesn't match the number of columns ({columnsCount}) for the data insertion operation on '{table}'. Provide the same number of column types and columns.
/// </summary>
public static string InsertDataOperationTypesCountMismatch(object? typesCount, object? columnsCount, object? table)
=> string.Format(
GetString("InsertDataOperationTypesCountMismatch", nameof(typesCount), nameof(columnsCount), nameof(table)),
typesCount, columnsCount, table);
/// <summary>
/// The number of values ({valuesCount}) doesn't match the number of columns ({columnsCount}) for the data insertion operation on '{table}'. Provide the same number of values and columns.
/// </summary>
public static string InsertDataOperationValuesCountMismatch(object? valuesCount, object? columnsCount, object? table)
=> string.Format(
GetString("InsertDataOperationValuesCountMismatch", nameof(valuesCount), nameof(columnsCount), nameof(table)),
valuesCount, columnsCount, table);
/// <summary>
/// Unable to translate a collection subquery in a projection since either parent or the subquery doesn't project necessary information required to uniquely identify it and correctly generate results on the client side. This can happen when trying to correlate on keyless entity type. This can also happen for some cases of projection before 'Distinct' or some shapes of grouping key in case of 'GroupBy'. These should either contain all key properties of the entity that the operation is applied on, or only contain simple property access expressions.
/// </summary>
public static string InsufficientInformationToIdentifyElementOfCollectionJoin
=> GetString("InsufficientInformationToIdentifyElementOfCollectionJoin");
/// <summary>
/// The 'setPropertyCalls' argument to 'ExecuteUpdate' may only contain a chain of 'SetProperty' expressing the properties to be updated.
/// </summary>
public static string InvalidArgumentToExecuteUpdate
=> GetString("InvalidArgumentToExecuteUpdate");
/// <summary>
/// The specified 'CommandTimeout' value '{value}' is not valid. It must be a positive number.
/// </summary>
public static string InvalidCommandTimeout(object? value)
=> string.Format(
GetString("InvalidCommandTimeout", nameof(value)),
value);
/// <summary>
/// The specified entity type '{derivedType}' is not derived from '{entityType}'.
/// </summary>
public static string InvalidDerivedTypeInEntityProjection(object? derivedType, object? entityType)
=> string.Format(
GetString("InvalidDerivedTypeInEntityProjection", nameof(derivedType), nameof(entityType)),
derivedType, entityType);
/// <summary>
/// A FromSqlExpression has an invalid arguments expression type '{expressionType}' or value type '{valueType}'.
/// </summary>
public static string InvalidFromSqlArguments(object? expressionType, object? valueType)
=> string.Format(
GetString("InvalidFromSqlArguments", nameof(expressionType), nameof(valueType)),
expressionType, valueType);
/// <summary>
/// The grouping key '{keySelector}' is of type '{keyType}' which is not valid key.
/// </summary>
public static string InvalidKeySelectorForGroupBy(object? keySelector, object? keyType)
=> string.Format(
GetString("InvalidKeySelectorForGroupBy", nameof(keySelector), nameof(keyType)),
keySelector, keyType);
/// <summary>
/// The entity type '{entityType}' is mapped to the 'DbFunction' named '{functionName}', but is derived from '{baseEntityType}'. Derived entity types cannot be mapped to a function.
/// </summary>
public static string InvalidMappedFunctionDerivedType(object? entityType, object? functionName, object? baseEntityType)
=> string.Format(
GetString("InvalidMappedFunctionDerivedType", nameof(entityType), nameof(functionName), nameof(baseEntityType)),
entityType, functionName, baseEntityType);
/// <summary>
/// The entity type '{entityType}' is mapped to the 'DbFunction' named '{functionName}' with return type '{returnType}'. Ensure that the mapped function returns 'IQueryable<{clrType}>'.
/// </summary>
public static string InvalidMappedFunctionUnmatchedReturn(object? entityType, object? functionName, object? returnType, object? clrType)
=> string.Format(
GetString("InvalidMappedFunctionUnmatchedReturn", nameof(entityType), nameof(functionName), nameof(returnType), nameof(clrType)),
entityType, functionName, returnType, clrType);
/// <summary>
/// The entity type '{entityType}' is mapped to the 'DbFunction' named '{functionName}' with parameters {parameters}. Ensure that the mapped function doesn't have any parameters.
/// </summary>
public static string InvalidMappedFunctionWithParameters(object? entityType, object? functionName, object? parameters)
=> string.Format(
GetString("InvalidMappedFunctionWithParameters", nameof(entityType), nameof(functionName), nameof(parameters)),
entityType, functionName, parameters);
/// <summary>