Exemplo n.º 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;
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
            }
        }
Exemplo n.º 5
0
 partial void Deletetbl_MembershipType(tbl_MembershipType instance);
Exemplo n.º 6
0
 partial void Updatetbl_MembershipType(tbl_MembershipType instance);
Exemplo n.º 7
0
 partial void Inserttbl_MembershipType(tbl_MembershipType instance);