示例#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())
         );
 }