コード例 #1
0
        public CarpoolingModel.Types.GroupType getGroupType(int id)
        {
            CarpoolingDAL.GroupType g = new CarpoolingDAL.GroupType();
            try {
                var query = db.GroupTypes.Where(o => o.idGroupType == id).First();
                g = query as CarpoolingDAL.GroupType;
            } catch (Exception) {
                g = null;
            }

            return(RepositoryUtility.createGroupTypeFromDALGType(g));
        }
コード例 #2
0
 partial void DeleteGroupType(GroupType instance);
コード例 #3
0
 partial void UpdateGroupType(GroupType instance);
コード例 #4
0
 partial void InsertGroupType(GroupType instance);
コード例 #5
0
        public CarpoolingModel.Types.GroupType getGroupType(int id)
        {
            CarpoolingDAL.GroupType g = new CarpoolingDAL.GroupType();
            try {
                var query = db.GroupTypes.Where(o => o.idGroupType == id).First();
                g = query as CarpoolingDAL.GroupType;
            } catch (Exception) {
                g = null;
            }

            return RepositoryUtility.createGroupTypeFromDALGType(g);
        }