Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HarshField"/> class.
        /// </summary>
        public HarshField()
        {
            ModifyChildrenContextState(() => Field);

            ExistingField = DeferredResolveBuilder.Create(
                () => Resolve.Field().ById(Id)
                );
        }
Пример #2
0
        public HarshContentType()
        {
            ModifyChildrenContextState(
                () => ContentType
                );

            ExistingContentType = DeferredResolveBuilder.Create(
                () => Resolve.ContentType().ById(Id)
                );
        }
Пример #3
0
        public HarshListView()
        {
            ViewFields = new Collection <String>();

            ExistingViews = DeferredResolveBuilder.Create(() =>
                                                          Lists
                                                          .ValidateIsClientObjectResolveBuilder()
                                                          .View().ByUrl(Url)
                                                          .As <Tuple <List, View> >()
                                                          );
        }
Пример #4
0
        public HarshList()
        {
            ExistingList = DeferredResolveBuilder.Create(
                () => Resolve.List().ByUrl(Url)
                );

            ModifyChildrenContextState(
                () => List
                );

            TemplateType = ListTemplateType.GenericList;
        }
Пример #5
0
 public HarshFieldRef()
 {
     ExistingFieldLinks = DeferredResolveBuilder.Create(
         () => new ResolveContentTypeFieldLink(ContentType.ValidateIsClientObjectResolveBuilder())
         );
 }