public void NonNullableNumericBigTest() { var csType = Col.NonNullableNumericBig.ToCSharpType(); var property = new CSharpProperty(Col.NonNullableNumericBig, csType); CSharpProperty.IncludeSqlKataAttributes = true; Assert.IsTrue(property.ToString() == "[Key(\"measurement_id\")]" + Environment.NewLine + "public long MeasurementId { get; set; }" + Environment.NewLine); CSharpProperty.IncludeSqlKataAttributes = false; Assert.IsTrue(property.ToString() == "public long MeasurementId { get; set; }" + Environment.NewLine); }
public void NullableNumericBigUnsignedTest() { var csType = Col.NullableNumericBigUnsigned.ToCSharpType(); var property = new CSharpProperty(Col.NullableNumericBigUnsigned, csType); CSharpProperty.IncludeSqlKataAttributes = true; Assert.IsTrue(property.ToString() == "[Column(\"crate_case\")]" + Environment.NewLine + "public ulong? CrateCase { get; set; }" + Environment.NewLine); CSharpProperty.IncludeSqlKataAttributes = false; Assert.IsTrue(property.ToString() == "public ulong? CrateCase { get; set; }" + Environment.NewLine); }