Пример #1
0
 public void AddProperties()
 {
     tbl_MembershipType membershiptype = new tbl_MembershipType(this.mtyCode);
     this.Name = membershiptype.mtyName;
     SFG_ProdCode code = SFG_ProdCode.GetFromIntCode(this.mtyCode);
     this.PublicationCode = code.ExtCode;
 }
        public void AddProperties()
        {
            tbl_MembershipType membershiptype = new tbl_MembershipType(this.mtyCode);

            this.Name = membershiptype.mtyName;
            SFG_ProdCode code = SFG_ProdCode.GetFromIntCode(this.mtyCode);

            this.PublicationCode = code.ExtCode;
        }
Пример #3
0
 public tbl_MembershipType(string mtyCode)
 {
     tbl_MembershipType membershiptype = new tbl_MembershipType();
     using (AHT_MainDataContext context = new AHT_MainDataContext(ConfigurationManager.ConnectionStrings["AHT_MainConnectionString"].ConnectionString))
     {
         membershiptype = (from a in context.tbl_MembershipTypes
                 where a.mtyCode == mtyCode
                 select a).SingleOrDefault();
     }
     if (membershiptype != null)
     {
         this.mtyCode = membershiptype.mtyCode;
         this.mtyGUID = membershiptype.mtyGUID;
         this.mtyName = membershiptype.mtyName;
     }
 }
Пример #4
0
        public tbl_MembershipType(string mtyCode)
        {
            tbl_MembershipType membershiptype = new tbl_MembershipType();

            using (AHT_MainDataContext context = new AHT_MainDataContext(ConfigurationManager.ConnectionStrings["AHT_MainConnectionString"].ConnectionString))
            {
                membershiptype = (from a in context.tbl_MembershipTypes
                                  where a.mtyCode == mtyCode
                                  select a).SingleOrDefault();
            }
            if (membershiptype != null)
            {
                this.mtyCode = membershiptype.mtyCode;
                this.mtyGUID = membershiptype.mtyGUID;
                this.mtyName = membershiptype.mtyName;
            }
        }
Пример #5
0
 partial void Deletetbl_MembershipType(tbl_MembershipType instance);
Пример #6
0
 partial void Updatetbl_MembershipType(tbl_MembershipType instance);
Пример #7
0
 partial void Inserttbl_MembershipType(tbl_MembershipType instance);