Ejemplo n.º 1
0
 private EntityDataKey GetEntityKey(QueryStructuralValue entity)
 {
     ExceptionUtilities.CheckArgumentNotNull(entity, "entity");
     return(EntityDataKey.CreateFromValues(entity.Type.Properties.Where(p => p.IsPrimaryKey).Select(p => new NamedValue(p.Name, entity.GetScalarValue(p.Name).Value))));
 }
Ejemplo n.º 2
0
 private EntityDataKey GetEntityKey(QueryStructuralType type, SerializableEntity entity)
 {
     ExceptionUtilities.CheckArgumentNotNull(type, "type");
     ExceptionUtilities.CheckArgumentNotNull(entity, "entity");
     return(EntityDataKey.CreateFromValues(entity.Properties.Where(p => type.Properties.Any(k => k.IsPrimaryKey && k.Name == p.Name)).Select(p => this.DataOracleConverter.Convert(p))));
 }