public Schema() : base() { InstanceType = typeof(__Breadcru1__); ClassName = "BreadcrumbPageBreadcrumbsElement"; Properties.ClearExposed(); Name = Add <__TString__>("Name", bind: "FormattedName"); Name.DefaultValue = ""; Name.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__Name__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__Name__ = (System.String)_v_; }, false); SearchQuery = Add <__TString__>("SearchQuery$"); SearchQuery.DefaultValue = ""; SearchQuery.Editable = true; SearchQuery.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__SearchQuery__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__SearchQuery__ = (System.String)_v_; }, false); SearchQuery.AddHandler((Json pup, Property <String> prop, String value) => { return(new Input.SearchQuery() { App = (BreadcrumbPageBreadcrumbsElement)pup, Template = (TString)prop, Value = value }); }, (Json pup, Starcounter.Input <String> input) => { ((BreadcrumbPageBreadcrumbsElement)pup).Handle((Input.SearchQuery)input); }); IsActive = Add <__TBool__>("IsActive"); IsActive.DefaultValue = false; IsActive.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__IsActive__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__IsActive__ = (System.Boolean)_v_; }, false); IsGhost = Add <__TBool__>("IsGhost", bind: "IsGhostParentSet"); IsGhost.DefaultValue = false; IsGhost.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__IsGhost__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__IsGhost__ = (System.Boolean)_v_; }, false); IsAdd = Add <__TBool__>("IsAdd"); IsAdd.DefaultValue = false; IsAdd.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__IsAdd__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__IsAdd__ = (System.Boolean)_v_; }, false); Select = Add <__TLong__>("Select$"); Select.DefaultValue = 0L; Select.Editable = true; Select.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__Select__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__Select__ = (System.Int64)_v_; }, false); Select.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.Select() { App = (BreadcrumbPageBreadcrumbsElement)pup, Template = (TLong)prop, Value = value }); }, (Json pup, Starcounter.Input <Int64> input) => { ((BreadcrumbPageBreadcrumbsElement)pup).Handle((Input.Select)input); }); Siblings = Add <__TArray__>("Siblings"); Siblings.SetCustomGetElementType((arr) => { return(__Breadcru2__.DefaultTemplate); }); Siblings.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__Siblings__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__Siblings__ = (__Arr__)_v_; }, false); AddSibling = Add <__TLong__>("AddSibling$"); AddSibling.DefaultValue = 0L; AddSibling.Editable = true; AddSibling.SetCustomAccessors((_p_) => { return(((__Breadcru1__)_p_).__bf__AddSibling__); }, (_p_, _v_) => { ((__Breadcru1__)_p_).__bf__AddSibling__ = (System.Int64)_v_; }, false); AddSibling.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.AddSibling() { App = (BreadcrumbPageBreadcrumbsElement)pup, Template = (TLong)prop, Value = value }); }, (Json pup, Starcounter.Input <Int64> input) => { ((BreadcrumbPageBreadcrumbsElement)pup).Handle((Input.AddSibling)input); }); }
public Schema() : base() { InstanceType = typeof(__Breadcru2__); ClassName = "BreadcrumbPageBreadcrumbsSiblingsElement"; Properties.ClearExposed(); Name = Add <__TString__>("Name"); Name.DefaultValue = ""; Name.SetCustomAccessors((_p_) => { return(((__Breadcru2__)_p_).__bf__Name__); }, (_p_, _v_) => { ((__Breadcru2__)_p_).__bf__Name__ = (System.String)_v_; }, false); Select = Add <__TLong__>("Select$"); Select.DefaultValue = 0L; Select.Editable = true; Select.SetCustomAccessors((_p_) => { return(((__Breadcru2__)_p_).__bf__Select__); }, (_p_, _v_) => { ((__Breadcru2__)_p_).__bf__Select__ = (System.Int64)_v_; }, false); Select.AddHandler((Json pup, Property <Int64> prop, Int64 value) => { return(new Input.Select() { App = (BreadcrumbPageBreadcrumbsSiblingsElement)pup, Template = (TLong)prop, Value = value }); }, (Json pup, Starcounter.Input <Int64> input) => { ((BreadcrumbPageBreadcrumbsSiblingsElement)pup).Handle((Input.Select)input); }); }