Exemplo n.º 1
0
        /// <summary>
        /// Kiem tra model backing changed,
        /// CSDL Sẽ tạo tự động nếu chưa có (Chưa hay lắm)
        /// </summary>
        /// <returns></returns>
        public bool isValidModel()
        {
            try
            {
                COSOS.Find(Guid.Empty);
                DAYYS.Find(Guid.Empty);
                TANGS.Find(Guid.Empty);
                VITRIS.Find(Guid.Empty);
                PHONGS.Find(Guid.Empty);
                THIETBIS.Find(Guid.Empty);
                CTTHIETBIS.Find(Guid.Empty);
                HINHANHS.Find(Guid.Empty);
                QUANTRIVIENS.Find(Guid.Empty);
                NHANVIENPTS.Find(Guid.Empty);
                LOGHETHONGS.Find(Guid.Empty);
                LOGSUCOPHONGS.Find(Guid.Empty);
                LOGTHIETBIS.Find(Guid.Empty);
                LOAITHIETBIS.Find(Guid.Empty);
                SETTINGS.Find(Guid.Empty);
                TINHTRANGS.Find(Guid.Empty);
                PERMISSIONS.Find(Guid.Empty);
                SUCOPHONGS.Find(Guid.Empty);
                GROUPS.Find(Guid.Empty);
                PHIEUMUONPHONGS.Find(Guid.Empty);

                return(true);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.ToString());
                return(false);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Kiem tra model backing changed,
        /// CSDL Sẽ tạo tự động nếu chưa có (Chưa hay lắm)
        /// </summary>
        /// <returns></returns>
        public bool isValidModel()
        {
            try
            {
                COSOS.Find(Guid.Empty);
                DAYYS.Find(Guid.Empty);
                TANGS.Find(Guid.Empty);
                VITRIS.Find(Guid.Empty);
                PHONGS.Find(Guid.Empty);
                LOAIPHONGS.Find(Guid.Empty);

                QUANTRIVIENS.Find(Guid.Empty);

                LOGHETHONGS.Find(Guid.Empty);

                SETTINGS.Find(Guid.Empty);
                TINHTRANGS.Find(Guid.Empty);
                PERMISSIONS.Find(Guid.Empty);

                GROUPS.Find(Guid.Empty);

                CTTAISANS.Find(Guid.Empty);
                TAISANS.Find(Guid.Empty);
                LOAITAISANS.Find(Guid.Empty);
                DONVIS.Find(Guid.Empty);
                LOAIDONVIS.Find(Guid.Empty);
                DONVITINHS.Find(Guid.Empty);
                LOGTANGGIAMTAISANS.Find(Guid.Empty);

                return(true);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.ToString());
                return(false);
            }
        }