Exemple #1
0
        public Composer Extend(params IAlias[] properties)
        {
            var c = new Composer
            {
                Properties = this.Properties
            };

            c.Properties.AddRange(properties);
            c.FirstNonExtended = this.Properties.Count;

            return c;
        }
Exemple #2
0
        static Page()
        {
            composer = new Mubble.Data.Mapping.Composer
            {
                Properties =
                    {
                    new Alias { Property = new TypedName<Raw.Page>("Record"), Ignore = { "TextBlockID" } },
                    new Alias { Property = new TypedName<Raw.TextBlock>("TextBlock"), Through = "Record", Ignore = { "ID" } }
                    }
            };
            map = Mapping.PropertyMap.Convert<Page>(composer);

            loadOptions = new DataLoadOptions();
            loadOptions.LoadWith<Raw.Page>(p => p.TextBlock);
        }