public void Adds_etag() { var model = new AtsClrContext().Model; var etagProp = model.GetEntityType(typeof(ClrPoco)).TryGetProperty("ETag"); Assert.NotNull(etagProp); }
public void Adds_composite_key() { var model = new AtsClrContext().Model; var key = model.GetEntityType(typeof(ClrPoco)).GetKey(); Assert.Equal(2, key.Properties.Count); Assert.Contains("PartitionKey", key.Properties.Select(p => p.ColumnName())); Assert.Contains("RowKey", key.Properties.Select(p => p.ColumnName())); }
public void Adds_composite_key() { var model = new AtsClrContext().Model; var key = model.GetEntityType(typeof(ClrPoco)).GetPrimaryKey(); Assert.Equal(2, key.Properties.Count); Assert.Contains("PartitionKey", key.Properties.Select(p => p.AzureTableStorage().Column)); Assert.Contains("RowKey", key.Properties.Select(p => p.AzureTableStorage().Column)); }