Beispiel #1
0
        public int Insert(Data.DataAspect aspect, IEnumerable <AspectMemberValue> values, out object identityValue)
        {
            identityValue = null;
            return(0);

            PutItemRequest request = new PutItemRequest();

            foreach (AspectMemberValue amv in values)
            {
                ExpectedAttributeValue eav = new ExpectedAttributeValue();
                eav.Value = new AttributeValue();
                request.Expected.Add(aspect[amv.Ordinal].StoredName, eav);
            }
        }
Beispiel #2
0
        public int Delete(Data.DataAspect aspect, Data.ClassFilter filter)
        {
            DeleteItemRequest request = new DeleteItemRequest();

            request.TableName = aspect.StoredName;


            if (filter != null)
            {
                AppendFilter(request.Expected, filter, true);
            }

            DeleteItemResponse response = _Client.DeleteItem(request);

            return(response.DeleteItemResult.ConsumedCapacityUnits > 0 ?
                   1 : 0);
        }
Beispiel #3
0
 public Data.ClassFilter CreateSearchFilter(Data.DataAspect aspect, string filter)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 public long Count(Data.DataAspect aspect, Data.ClassFilter filter)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public bool Exists(Data.DataAspect aspect, Data.ClassFilter filter)
 {
     throw new NotImplementedException();
 }
Beispiel #6
0
 public object GetMemberValue(Data.DataAspect aspect, int ordinal, Data.ClassFilter filter)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public IEnumerable <object> SelectMember(Data.DataAspect aspect, int ordinal, Data.ClassFilter filter, Data.ClassSort sort, int pageSize, int pageOrdinal)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public int Update(Data.DataAspect aspect, IEnumerable <AspectMemberValue> values, Data.ClassFilter filter)
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 public int Insert(Data.DataAspect aspect, System.Collections.IEnumerable entities)
 {
     throw new NotImplementedException();
 }