public static void Main() { AnnotatedField.Test(); AnnotatedMethodParameters.Test(); AnnotatedMethodReturnValue.Test(); AnnotatedProperty.Test(); AnnotatedGenerics.Test(); AnnotationOnGenerics.Test(); AnnotationOnInteropMethod.Test(); AccessThroughLdToken.Test(); }
public FooBuilderArgument(AnnotatedProperty <FooAttribute> prop) { this._Prop = prop; }
#pragma warning disable CS0618 // Type or member is obsolete private static void Build(EntityTypeBuilder builder1, OwnedNavigationBuilder builder2, AnnotatedProperty <DecimalAttribute> builderArg) #pragma warning restore CS0618 // Type or member is obsolete { var property = builder1?.Property(builderArg.Name) ?? builder2.Property(builderArg.Name); if (property == null) { throw new Exception($"Could not determind property \"{builderArg.Name}\" of \"{(builder2.OwnedEntityType as EntityType).Name}\""); } property.HasColumnType($"decimal({builderArg.Attribute.Precision}, {builderArg.Attribute.Scale})"); }