I understand this is how it has always been and probably won't be modified 
as it would be a breaking change but #0:0 really should be the Null RID. 
 Using #0;0 as Null RID would enable the use of value types. 

Cheers,
Chris.

On Thursday, July 9, 2015 at 6:54:11 PM UTC+12, l.garulli wrote:
>
> Actually record #0:0 contains the database metadata. A Null RID is #-1:-1.
>
> Best Regards,
>
> Founder & CEO
> OrientDB <http://orientdb.com/>
>
>
> On 9 July 2015 at 08:09, Chris Waldron <[email protected] <javascript:>
> > wrote:
>
>> The reason I asked this question is that the C# driver uses (-1, -1) as 
>> the default RID.  I wanted to rework the C# driver to make the Orid a 
>> struct rather than a class.  In C# a struct is a value type and is never 
>> null with the values defaulted to null or zero.  Thus the default Orid is 
>> (0,0).  I wanted to know if that would break anything.  However after 
>> making the proper changes and running the unit tests, I was able to achieve 
>> the same unit tests outcomes thus verify that I can use #0:0 as the empty 
>> or null rid.
>>
>> Cheers,
>> Chris
>>
>>
>> On Sunday, July 5, 2015 at 6:16:33 PM UTC+12, Chris Waldron wrote:
>>>
>>> Can the rid #0:0 ever exist?  Can I assume rid #0:0 to be "null" for the 
>>> purpose of defining RIDs?
>>>
>>> Cheers,
>>> Chris.
>>>
>>  -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to