コード例 #1
0
ファイル: Hotel.cs プロジェクト: ducnguyenht/DEVXAF
        private BusinessEntityProperty CreateExPropNonLang(HotelPropertyKeyName hotelPropertyKeyName, string PropertyValue)
        {
            var exPropNonLang = new BusinessEntityProperty();

            exPropNonLang.Category         = (int)HotelPropertyCategory.HotelConvenient;
            exPropNonLang.PropertyKey      = (int)hotelPropertyKeyName;
            exPropNonLang.PropertyValue    = PropertyValue;
            exPropNonLang.Language         = Languages.VN;
            exPropNonLang.BusinessEntityId = this.Id;
            return(exPropNonLang);
        }
コード例 #2
0
ファイル: Hotel.cs プロジェクト: ducnguyenht/DEVXAF
 private BusinessEntityProperty ReadBusinessEntityDB(int?hotel_Id, HotelPropertyKeyName hotelPropertyKeyName, string language = Languages.VN)
 {
     return(NamolyNomenclatureContext.BusinessEntityProperties.Single(
                where : "BusinessEntityId=@0 and PropertyKey=@1 and Language=@2",
                parms: new object[] { hotel_Id, hotelPropertyKeyName, language }));
 }