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)))); }
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)))); }