コード例 #1
0
 public void CreateTabUrl(TabUrl t)
 {
     using (IDataContext ctx = DataContext.Instance())
     {
         var rep = ctx.GetRepository <TabUrl>();
         rep.Insert(t);
     }
 }
コード例 #2
0
 public void CreateTabUrl(TabUrl t)
 {
     using (IDataContext ctx = DataContext.Instance())
     {
         var rep = ctx.GetRepository<TabUrl>();
         rep.Insert(t);
     }
 }
コード例 #3
0
        protected void AddTabURL(TabInfo t)
        {
            //Temporary solution: Writing directly to table TabUrls
            //Dont know how to do this in DNN

            TabUrl           tu = new TabUrl();
            TabUrlController tc = new TabUrlController();

            tu.TabId                = t.TabID;
            tu.SeqNum               = 0;
            tu.Url                  = "/" + t.Title;
            tu.QueryString          = "";
            tu.HttpStatus           = "200";
            tu.IsSystem             = true;
            tu.PortalAliasUsage     = 0;
            tu.CreatedByUserID      = 1;
            tu.CreatedOnDate        = DateTime.Now;
            tu.LastModifiedByUserID = 1;
            tu.LastModifiedOnDate   = DateTime.Now;
            tc.CreateTabUrl(tu);
        }
コード例 #4
0
ファイル: DNN.cs プロジェクト: Jochumzen/DisplayPluggOld
        protected void AddTabURL(TabInfo t)
        {
            //Temporary solution: Writing directly to table TabUrls
            //Dont know how to do this in DNN

            TabUrl tu = new TabUrl();
            TabUrlController tc = new TabUrlController();
            tu.TabId = t.TabID;
            tu.SeqNum = 0;
            tu.Url = "/" + t.Title;
            tu.QueryString = "";
            tu.HttpStatus = "200";
            tu.IsSystem = true;
            tu.PortalAliasUsage = 0;
            tu.CreatedByUserID = 1;
            tu.CreatedOnDate = DateTime.Now;
            tu.LastModifiedByUserID = 1;
            tu.LastModifiedOnDate = DateTime.Now;
            tc.CreateTabUrl(tu);
        }