Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: renamed app to better name #6

Merged
merged 1 commit into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions how-to-precache-an-xaf-winforms-application.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "how_to_precache_an_xaf_winforms_application.Module", "src\how_to_precache_an_xaf_winforms_application.Module\how_to_precache_an_xaf_winforms_application.Module.csproj", "{5F15837D-D1E5-44DC-92F0-4F2EBE9C3F8D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PreCacheDemo.Module", "src\PreCacheDemo.Module\PreCacheDemo.Module.csproj", "{5F15837D-D1E5-44DC-92F0-4F2EBE9C3F8D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "how_to_precache_an_xaf_winforms_application.Module.Win", "src\how_to_precache_an_xaf_winforms_application.Module.Win\how_to_precache_an_xaf_winforms_application.Module.Win.csproj", "{7964F87D-BC5D-4C4E-8B2F-71E89739AA97}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PreCacheDemo.Module.Win", "src\PreCacheDemo.Module.Win\PreCacheDemo.Module.Win.csproj", "{7964F87D-BC5D-4C4E-8B2F-71E89739AA97}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "how_to_precache_an_xaf_winforms_application.Win", "src\how_to_precache_an_xaf_winforms_application.Win\how_to_precache_an_xaf_winforms_application.Win.csproj", "{D05D93DF-312D-4D4E-B980-726871EC7833}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PreCacheDemo.Win", "src\PreCacheDemo.Win\PreCacheDemo.Win.csproj", "{D05D93DF-312D-4D4E-B980-726871EC7833}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scissors.Xaf.CacheWarmup.Attributes", "src\Scissors.Xaf.CacheWarmup.Attributes\Scissors.Xaf.CacheWarmup.Attributes.csproj", "{315DC3A4-2332-4E6F-93F5-A22376C6B96A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Scissors.Xaf.CacheWarmup.Attributes", "src\Scissors.Xaf.CacheWarmup.Attributes\Scissors.Xaf.CacheWarmup.Attributes.csproj", "{315DC3A4-2332-4E6F-93F5-A22376C6B96A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scissors.Xaf.CacheWarmup.Generators", "src\Scissors.Xaf.CacheWarmup.Generators\Scissors.Xaf.CacheWarmup.Generators.csproj", "{3DF45F82-F10A-4D18-88B3-5EF32A91D631}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Scissors.Xaf.CacheWarmup.Generators", "src\Scissors.Xaf.CacheWarmup.Generators\Scissors.Xaf.CacheWarmup.Generators.csproj", "{3DF45F82-F10A-4D18-88B3-5EF32A91D631}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scissors.Xaf.CacheWarmup.Generators.Cli", "src\Scissors.Xaf.CacheWarmup.Generators.Cli\Scissors.Xaf.CacheWarmup.Generators.Cli.csproj", "{15481A2D-D779-4D8D-B6C1-99405490C5C4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Scissors.Xaf.CacheWarmup.Generators.Cli", "src\Scissors.Xaf.CacheWarmup.Generators.Cli\Scissors.Xaf.CacheWarmup.Generators.Cli.csproj", "{15481A2D-D779-4D8D-B6C1-99405490C5C4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scissors.Xaf.CacheWarmup.Generators.MsBuild", "src\Scissors.Xaf.CacheWarmup.Generators.MsBuild\Scissors.Xaf.CacheWarmup.Generators.MsBuild.csproj", "{9408D7A0-2DD9-494D-B230-F17CF19F67D6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Scissors.Xaf.CacheWarmup.Generators.MsBuild", "src\Scissors.Xaf.CacheWarmup.Generators.MsBuild\Scissors.Xaf.CacheWarmup.Generators.MsBuild.csproj", "{9408D7A0-2DD9-494D-B230-F17CF19F67D6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
2 changes: 1 addition & 1 deletion src/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyProduct("how-to-precache-an-xaf-winforms-application.Win")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0+92da5a204d931da08890f9d0938b40627b7b91ed+topic/automate-caching2")]
[assembly: AssemblyInformationalVersion("1.0.0.0+4861b561fe75ad358e7cf46f200e803a78024ac0+topic/rename-app")]
[assembly: AssemblyCopyright("Copyright Manuel Grundner © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyConfiguration("")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<ProjectGuid>{7964F87D-BC5D-4C4E-8B2F-71E89739AA97}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>how_to_precache_an_xaf_winforms_application.Module.Win</RootNamespace>
<AssemblyName>how_to_precache_an_xaf_winforms_application.Module.Win</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<RootNamespace>PreCacheDemo.Module.Win</RootNamespace>
<AssemblyName>PreCacheDemo.Module.Win</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
Expand Down Expand Up @@ -169,9 +169,9 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\how_to_precache_an_xaf_winforms_application.Module\how_to_precache_an_xaf_winforms_application.Module.csproj">
<ProjectReference Include="..\PreCacheDemo.Module\PreCacheDemo.Module.csproj">
<Project>{5F15837D-D1E5-44DC-92F0-4F2EBE9C3F8D}</Project>
<Name>how_to_precache_an_xaf_winforms_application.Module</Name>
<Name>PreCacheDemo.Module</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
using DevExpress.ExpressApp.Model.DomainLogics;
using DevExpress.ExpressApp.Model.NodeGenerators;

namespace how_to_precache_an_xaf_winforms_application.Module.Win {
namespace PreCacheDemo.Module.Win {
[ToolboxItemFilter("Xaf.Platform.Win")]
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppModuleBasetopic.aspx.
public sealed partial class how_to_precache_an_xaf_winforms_applicationWindowsFormsModule : ModuleBase {
public how_to_precache_an_xaf_winforms_applicationWindowsFormsModule() {
public sealed partial class PreCacheDemoWindowsFormsModule : ModuleBase {
public PreCacheDemoWindowsFormsModule() {
InitializeComponent();
}
public override IEnumerable<ModuleUpdater> GetModuleUpdaters(IObjectSpace objectSpace, Version versionFromDB) {
Expand Down
33 changes: 33 additions & 0 deletions src/PreCacheDemo.Module/BusinessObjects/PreCacheDemoDbContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Data;
using System.Linq;
using System.Data.Entity;
using System.Data.Common;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
using System.ComponentModel;
using DevExpress.ExpressApp.EF.Updating;
using DevExpress.Persistent.BaseImpl.EF;
using DevExpress.ExpressApp.Design;
using DevExpress.ExpressApp.EF.DesignTime;

namespace PreCacheDemo.Module.BusinessObjects {
public class PreCacheDemoContextInitializer : DbContextTypesInfoInitializerBase {
protected override DbContext CreateDbContext() {
return new PreCacheDemoDbContext("App=EntityFramework");
}
}
[TypesInfoInitializer(typeof(PreCacheDemoContextInitializer))]
public class PreCacheDemoDbContext : DbContext {
public PreCacheDemoDbContext(String connectionString)
: base(connectionString) {
}
public PreCacheDemoDbContext(DbConnection connection)
: base(connection, false) {
}
public PreCacheDemoDbContext()
: base("name=ConnectionString") {
}
public DbSet<ModuleInfo> ModulesInfo { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using DevExpress.ExpressApp.Xpo;
using DevExpress.Persistent.BaseImpl;

namespace how_to_precache_an_xaf_winforms_application.Module.DatabaseUpdate {
namespace PreCacheDemo.Module.DatabaseUpdate {
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppUpdatingModuleUpdatertopic.aspx
public class Updater : ModuleUpdater {
public Updater(IObjectSpace objectSpace, Version currentDBVersion) :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<Applications>
<!-- Win -->
<Application
Name="how_to_precache_an_xaf_winforms_application.Win"
FileName="[WinAppBin]\how_to_precache_an_xaf_winforms_application.Win.exe"
Name="PreCacheDemo.Win"
FileName="[WinAppBin]\PreCacheDemo.Win.exe"
AdapterAssemblyName="[WinAdapterAssemblyName]"
CommunicationPort="4100"/>
</Applications>
<TestDatabases>
<Database xsi:type="TestMSSQLDatabase" Server="(localdb)\mssqllocaldb" DBName="how_to_precache_an_xaf_winforms_applicationEasyTest"/>
<Database xsi:type="TestMSSQLDatabase" Server="(localdb)\mssqllocaldb" DBName="PreCacheDemoEasyTest"/>
</TestDatabases>

<Aliases>
<Alias Name="DomainUserName" Value="%USERDOMAIN%\%USERNAME%" />
<Alias Name="WinAdapterAssemblyName" Value="DevExpress.ExpressApp.EasyTest.WinAdapter.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Alias Name="WinAppBin" Value="[ConfigPath]\..\..\how_to_precache_an_xaf_winforms_application.Win\Bin\EasyTest" />
<Alias Name="WinAppBin" Value="[ConfigPath]\..\..\PreCacheDemo.Win\Bin\EasyTest" />
</Aliases>
</Options>
9 changes: 9 additions & 0 deletions src/PreCacheDemo.Module/FunctionalTests/sample.ets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;#DropDB PreCacheDemoEasyTest

#Application PreCacheDemo.Win

*Action About...

*Action OK


Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
using DevExpress.ExpressApp.Model.DomainLogics;
using DevExpress.ExpressApp.Model.NodeGenerators;
using System.Data.Entity;
using how_to_precache_an_xaf_winforms_application.Module.BusinessObjects;
using PreCacheDemo.Module.BusinessObjects;
using DevExpress.ExpressApp.Xpo;

namespace how_to_precache_an_xaf_winforms_application.Module {
namespace PreCacheDemo.Module {
// For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppModuleBasetopic.aspx.
public sealed partial class how_to_precache_an_xaf_winforms_applicationModule : ModuleBase {
static how_to_precache_an_xaf_winforms_applicationModule() {
public sealed partial class PreCacheDemoModule : ModuleBase {
static PreCacheDemoModule() {
DevExpress.Data.Linq.CriteriaToEFExpressionConverter.SqlFunctionsType = typeof(System.Data.Entity.SqlServer.SqlFunctions);
DevExpress.Data.Linq.CriteriaToEFExpressionConverter.EntityFunctionsType = typeof(System.Data.Entity.DbFunctions);
DevExpress.ExpressApp.SystemModule.ResetViewSettingsController.DefaultAllowRecreateView = false;
// Uncomment this code to delete and recreate the database each time the data model has changed.
// Do not use this code in a production environment to avoid data loss.
// #if DEBUG
// Database.SetInitializer(new DropCreateDatabaseIfModelChanges<how_to_precache_an_xaf_winforms_applicationDbContext>());
// Database.SetInitializer(new DropCreateDatabaseIfModelChanges<PreCacheDemoDbContext>());
// #endif
}
public how_to_precache_an_xaf_winforms_applicationModule() {
public PreCacheDemoModule() {
InitializeComponent();
BaseObject.OidInitializationMode = OidInitializationMode.AfterConstruction;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<ProjectGuid>{5F15837D-D1E5-44DC-92F0-4F2EBE9C3F8D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>how_to_precache_an_xaf_winforms_application.Module</RootNamespace>
<AssemblyName>how_to_precache_an_xaf_winforms_application.Module</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<RootNamespace>PreCacheDemo.Module</RootNamespace>
<AssemblyName>PreCacheDemo.Module</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
Expand Down Expand Up @@ -106,7 +106,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="BusinessObjects\how_to_precache_an_xaf_winforms_applicationDbContext.cs" />
<Compile Include="BusinessObjects\PreCacheDemoDbContext.cs" />
<Compile Include="DatabaseUpdate\Updater.cs" />
<Compile Include="Module.cs">
<SubType>Component</SubType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@
<div class="section first">
<h2>The XAF Solution Wizard has successfully generated the solution according to your settings.</h2>
<ul>
<li>The <b>how_to_precache_an_xaf_winforms_application.Module</b> project keeps your platform-agnostic code.
<li>The <b>PreCacheDemo.Module</b> project keeps your platform-agnostic code.
Add persistent objects code to the <b>Business Objects</b> folder of this project and XAF will automatically create a UI to create, read, update and delete these persistent objects.</li>
<li>The <b>how_to_precache_an_xaf_winforms_application.Win</b> project is a startup project for the desktop application.</li>
<li>The <b>PreCacheDemo.Win</b> project is a startup project for the desktop application.</li>
<li>To specify the database used by your application, modify the ConnectionString attribute in the configuration file located in the startup project.</li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System">
<section name="DevExpress.LookAndFeel.Design.AppSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="DevExpress.LookAndFeel.Design.AppSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</sectionGroup>
</configSections>
<applicationSettings>
Expand All @@ -24,12 +24,12 @@
-->
</appSettings>
<connectionStrings>
<add name="EasyTestConnectionString" connectionString="Integrated Security=SSPI;Pooling=false;Data Source=(localdb)\mssqllocaldb;Initial Catalog=how_to_precache_an_xaf_winforms_applicationEasyTest"/>
<add name="ConnectionStringXPO" connectionString="Integrated Security=SSPI;Pooling=false;Data Source=(localdb)\mssqllocaldb;Initial Catalog=how_to_precache_an_xaf_winforms_applicationXPO" />
<add name="ConnectionStringEF" connectionString="Integrated Security=SSPI;MultipleActiveResultSets=True;Data Source=(localdb)\mssqllocaldb;Initial Catalog=how_to_precache_an_xaf_winforms_applicationEF" providerName="System.Data.SqlClient"/>
<add name="EasyTestConnectionString" connectionString="Integrated Security=SSPI;Pooling=false;Data Source=(localdb)\mssqllocaldb;Initial Catalog=PreCacheDemoEasyTest"/>
<add name="ConnectionStringXPO" connectionString="Integrated Security=SSPI;Pooling=false;Data Source=(localdb)\mssqllocaldb;Initial Catalog=PreCacheDemoXPO"/>
<add name="ConnectionStringEF" connectionString="Integrated Security=SSPI;MultipleActiveResultSets=True;Data Source=(localdb)\mssqllocaldb;Initial Catalog=PreCacheDemoEF" providerName="System.Data.SqlClient"/>
<!--
Use the following connection string to connect to a Jet (Microsoft Access) database:
<add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password=;User ID=Admin;Data Source=how_to_precache_an_xaf_winforms_application.mdb;Mode=Share Deny None;"/>
<add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Password=;User ID=Admin;Data Source=PreCacheDemo.mdb;Mode=Share Deny None;"/>
-->
</connectionStrings>
<system.diagnostics>
Expand All @@ -42,6 +42,6 @@
</switches>
</system.diagnostics>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
Loading