Exemple #1
0
 public void Attach(XpandModuleBase xpandModuleBase) {
     if (!xpandModuleBase.Executed<ISequenceGeneratorUser>(SequenceGeneratorHelperName)) {
         if (SequenceObjectType == null){
             SequenceObjectType = xpandModuleBase.LoadFromBaseImpl("Xpand.Persistent.BaseImpl.SequenceObject");
             ModifySequenceObjectWhenMySqlDatalayer(XafTypesInfo.Instance);
         }
         if (xpandModuleBase.RuntimeMode) {
             _xpandModuleBase = xpandModuleBase;
             Application.LoggedOff += ApplicationOnLoggedOff;
         }
     }
 }
 public void Attach(XpandModuleBase xpandModuleBase) {
     if (!xpandModuleBase.Executed<ISequenceGeneratorUser>(SequenceGeneratorHelperName)) {
         if (SequenceObjectType == null){
             SequenceObjectType = xpandModuleBase.LoadFromBaseImpl("Xpand.Persistent.BaseImpl.SequenceObject");
         }
         if (xpandModuleBase.RuntimeMode) {
             _xpandModuleBase = xpandModuleBase;
             Application.LoggedOff += ApplicationOnLoggedOff;
             var helper = new ConnectionStringHelper();
             helper.Attach(_xpandModuleBase);
             helper.ConnectionStringUpdated += (sender, args) => InitializeSequenceGenerator();
         }
     }
 }
Exemple #3
0
 public void Attach(XpandModuleBase xpandModuleBase, ConnectionStringHelper helper) {
     _xpandModuleBase = xpandModuleBase;
     if (!_xpandModuleBase.Executed<ISequenceGeneratorUser>(SequenceGeneratorHelperName)) {
         if (_xpandModuleBase.RuntimeMode) {
             Application.LoggedOff += ApplicationOnLoggedOff;
             AddToAdditionalExportedTypes(new[] { "Xpand.Persistent.BaseImpl.SequenceObject" });
             helper.ConnectionStringUpdated += XpandModuleBaseOnConnectionStringUpdated;
         }
     }
 }
Exemple #4
0
 bool Executed(string name) {
     return _xpandModuleBase.Executed(name);
 }