Beispiel #1
0
        private static void PopulateInfositePages(System.Data.SqlClient.SqlDataReader dr, Infosites isp)
        {
            var with_1 = isp;

            with_1.ID            = System.Convert.ToInt32(dr.DBtoInt("ID"));
            with_1.Aktiv         = System.Convert.ToBoolean(dr.DBtoInt("Aktiv"));
            with_1.Site_FK       = System.Convert.ToInt32(dr.DBtoInt("Site_FK"));
            with_1.Parent_ID     = System.Convert.ToInt32(dr.DBtoInt("Parent_ID"));
            with_1.Sort          = System.Convert.ToInt32(dr.DBtoInt("Sort"));
            with_1.IncludeInMenu = System.Convert.ToBoolean(dr.DBtoBool("IncludeInMenu"));
            with_1.IsDeleted     = System.Convert.ToBoolean(dr.DBtoBool("IsDeleted"));
            with_1.IsDisabled    = System.Convert.ToBoolean(dr.DBtoBool("IsDisabled"));
            with_1.Forside       = System.Convert.ToBoolean(dr.DBtoBool("Forside"));
            with_1.PageName      = dr.DBtoString("PageName");
            with_1.PageTitle     = dr.DBtoString("PageTitle");
            with_1.Description   = dr.DBtoString("Description");
            with_1.Keywords      = dr.DBtoString("Keywords");
            with_1.Template_ID   = System.Convert.ToInt32(dr.DBtoInt("Template_ID"));
            with_1.Category_ID   = System.Convert.ToInt32(dr.DBtoInt("Category_ID"));
            with_1.LinkType_ID   = System.Convert.ToInt32(dr.DBtoInt("LinkType_ID"));
            with_1.LinkUrl       = dr.DBtoString("LinkUrl");
            with_1.LinkPage_ID   = System.Convert.ToInt32(dr.DBtoInt("LinkPage_ID"));
            with_1.LinkTarget    = dr.DBtoString("LinkTarget");
            with_1.OpenDate      = System.Convert.ToDateTime(dr.DBtoDate("OpenDate"));
            with_1.ExpireDate    = System.Convert.ToDateTime(dr.DBtoDate("ExpireDate"));
        }
Beispiel #2
0
        private static void Populate(System.Data.SqlClient.SqlDataReader dr, KursusDag c)
        {
            var with_1 = c;

            with_1.KursusPolicyID  = System.Convert.ToInt32(dr.DBtoInt("KursusPolicyID"));
            with_1.KursusDato      = System.Convert.ToDateTime(dr.DBtoDate("KursusDato"));
            with_1.Repetionskursus = System.Convert.ToBoolean(dr.DBtoBool("Repetionskursus"));
            with_1.Status          = (RescueTekniq.BOL.KursusStatusEnum)(dr.DBtoInt("Status"));
            PopulateStandard(dr, c);
        }