예제 #1
0
            internal SchemaMarshaler(RealmSchema schema)
            {
                var properties = new List <Native.SchemaProperty>();

                Objects = schema.Select(@object =>
                {
                    var start = properties.Count;

                    properties.AddRange(@object.Select(ForMarshalling));

                    return(new Native.SchemaObject
                    {
                        name = @object.Name,
                        properties_start = start,
                        properties_end = properties.Count
                    });
                }).ToArray();
                Properties = properties.ToArray();
            }
예제 #2
0
            public SchemaMarshaler(RealmSchema schema)
            {
                var properties = new List <SchemaProperty>();

                Objects = schema.Select(@object =>
                {
                    var start = properties.Count;

                    properties.AddRange(@object.Select(ForMarshalling));

                    return(new SchemaObject
                    {
                        name = @object.Name,
                        properties_start = start,
                        properties_end = properties.Count,
                        is_embedded = @object.IsEmbedded,
                    });
                }).ToArray();
                Properties = properties.ToArray();
            }