Exemple #1
0
 protected override void Seed(XmsDbContext context)
 {
     DataDictionaryData.Init(context);
     DepartmentData.Init(context);
     DistributionCenterData.Init(context);
     StoreData.Init(context);
     CurrencyRateData.Init(context);
     IncidentalPriceData.Init(context);
     ChannelData.Init(context);
 }
Exemple #2
0
 protected override void LazySet()
 {
     base.LazySet();
     if (PersistenceState == PersistenceState.NewAndChanged || PersistenceState == PersistenceState.LoadedAndChanged)
     {
         if ((object)InnerData == (object)OriginalData)
         {
             OriginalData = new CurrencyRateData(InnerData);
         }
     }
 }
Exemple #3
0
 public CurrencyRateData(CurrencyRateData data)
 {
     CurrencyRateDate = data.CurrencyRateDate;
     FromCurrencyCode = data.FromCurrencyCode;
     ToCurrencyCode   = data.ToCurrencyCode;
     AverageRate      = data.AverageRate;
     EndOfDayRate     = data.EndOfDayRate;
     Currency         = data.Currency;
     ModifiedDate     = data.ModifiedDate;
     Uid = data.Uid;
 }