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