C# conditional operator error Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

The conditional operator is an expression, not a statement, that means it cannot stand alone, as the result has to be used somehow. In your code, you don’t use the result, but try to produce side effects instead. Depending on the condition before the ? the operator returns the result of either the first or … Read more

Enum Naming Convention – Plural

Microsoft recommends using singular for Enums unless the Enum represents bit fields (use the FlagsAttribute as well). See Enumeration Type Naming Conventions (a subset of Microsoft’s Naming Guidelines). To respond to your clarification, I see nothing wrong with either of the following: or

Why am I getting ‘Assembly ‘*.dll’ must be strong signed in order to be marked as a prerequisite.’?

My guess is that you’re not working with strongly named assemblies. I’ve had this error when two projects reference slightly different versions of the same assembly and a more dependent project references these projects. The resolution in my case was to remove the key and version information from the assembly name in the .csproj files … Read more

Unable to determine the principal end of an association between the types

That exception is launched because you are trying to configure an one-to-one relationship but you are not specifying which end is the principal in the relationship. Principal end is the one which will be inserted first and which can exist without the dependent one. Dependent end is the one which must be inserted after the principal because it has foreign key to the … Read more