Exemple #1
0
        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()));
 }
Exemple #3
0
        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));
        }
 public void Adds_etag()
 {
     var model = new AtsClrContext().Model;
     var etagProp = model.GetEntityType(typeof(ClrPoco)).TryGetProperty("ETag");
     Assert.NotNull(etagProp);
 }