public AppSettingCollection FetchAll() { AppSettingCollection coll = new AppSettingCollection(); Query qry = new Query(AppSetting.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
static void Main(string[] args) { if (args != null) { //防止直接打开 AppShortcutsModel.exe 清除所有记录 if (args.Length == 1 && args[0] == AppSetting.AuthToken) { AppSettingCollection.SaveShortcutsToRegistry(); } } #if DEBUG System.Console.WriteLine("按任意键结束..."); System.Console.ReadLine(); #endif }
static void Main(string[] args) { //防止直接打开 AppShortcutsModel.exe 清除所有记录 if (args == null || args.Length != 1 || args[0] != AppSetting.AuthToken) { return; } System.Console.WriteLine("开始写入注册表..."); AppSettingCollection.SaveShortcutsToRegistry(); System.Console.WriteLine("写入注册表成功!"); #if DEBUG System.Console.WriteLine("按任意键结束..."); System.Console.ReadLine(); #endif }
public AppSettingCollection FetchByQuery(Query qry) { AppSettingCollection coll = new AppSettingCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public AppSettingCollection FetchByID(object Id) { AppSettingCollection coll = new AppSettingCollection().Where("ID", Id).Load(); return coll; }
public static void RegisterAppSettingsConfigChangedNotification(EventHandler handler) { AppSettingCollection.RegisterConfigChangedNotification(handler); }