Inheritance: Microsoft.WindowsAzure.StorageClient.TableServiceEntity
Esempio n. 1
0
 public void ArmazenarMember(MemberMetaInfo memberMetaInfo)
 {
     try {
         this.context.AddObject("Members", memberMetaInfo);
         this.context.SaveChanges();
     }
     catch (Exception ex) {
         if(!ex.InnerException.Message.Contains("large"))
             throw;
     }
 }
Esempio n. 2
0
        public void ArmazenarMember(MemberMetaInfo memberMetaInfo)
        {
            var existing =
                this.context
                    .CreateQuery<MemberMetaInfo>("Members")
                    .Where(n => n.PartitionKey == memberMetaInfo.PartitionKey)
                    .Where(n => n.RowKey == memberMetaInfo.RowKey);

            if (existing.FirstOrDefault() == null) {
                try {
                    this.context.AddObject("Members", memberMetaInfo);
                    this.context.SaveChanges();
                }
                catch (Exception ex) {
                    if (!ex.InnerException.Message.Contains("large"))
                        throw;
                }
            }
        }