JFramework.Core 1.0.7

dotnet add package JFramework.Core --version 1.0.7
                    
NuGet\Install-Package JFramework.Core -Version 1.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JFramework.Core" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JFramework.Core" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="JFramework.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JFramework.Core --version 1.0.7
                    
#r "nuget: JFramework.Core, 1.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JFramework.Core@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JFramework.Core&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=JFramework.Core&version=1.0.7
                    
Install as a Cake Tool

JFramework

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JFramework.Core:

Package Downloads
JFramework.Data.MySql

JFramework

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.7 2,007 10/27/2015
1.0.6 1,622 10/20/2015
1.0.5 1,636 10/19/2015
1.0.4 1,700 9/4/2015
1.0.3 1,670 9/1/2015
1.0.2 1,866 7/31/2015
1.0.1 1,565 7/30/2015

1、Install Package

Install-Package log4net
Install-Package ServiceStack.Redis

2、Create Files

create log4net.config, u can edit the file content if u need, but note that built-in logger name is JFramework.Core and OtherLog

3、Add Config

<ProjectType>.config Add:

<!--[log4net Add]-->
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<!--[database Add]-->
<connectionStrings>
 <add name="Default" connectionString="server=<databaseServer>;database=<databaseName>;uid=<uid>;pwd=<pwd>;port=<port>;character set=utf8;" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>

Now ,u can do work.

the entity class inherit JFramework.Core.Data.EntityObject

-class add attribute Table
-property add attribute Column

like this

   [Table("MyData_District")]
   public class District : EntityObject
   {
       private int _DistrictCode;
       private string _DistrictName;

       [Column(IsPrimaryKey = true, IsNull = false, Name = "Code")]
       public int DistrictCode
       {
           get { return _DistrictCode; }
           set { this.ReportPropertyChanged("DistrictCode"); }
       }

       [Column(IsPrimaryKey = true, IsNull = false, Name = "Name")]
       public string DistrictName
       {
           get { return _DistrictName; }
           set { this.ReportPropertyChanged("DistrictName"); }
       }
   }

the rule class inherit JFramework.Core.Data.RuleObject
the BLL call <SomeRule>.Instance.<SomeMethod>


How to using log4net record log?

applaction startup add:
log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(Server.MapPath("Log4Net.config")));