JFramework.Core 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package JFramework.Core --version 1.0.2
NuGet\Install-Package JFramework.Core -Version 1.0.2
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.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JFramework.Core --version 1.0.2
#r "nuget: JFramework.Core, 1.0.2"
#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.
// Install JFramework.Core as a Cake Addin
#addin nuget:?package=JFramework.Core&version=1.0.2

// Install JFramework.Core as a Cake Tool
#tool nuget:?package=JFramework.Core&version=1.0.2

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 1,478 10/27/2015
1.0.6 1,184 10/20/2015
1.0.5 1,193 10/19/2015
1.0.4 1,234 9/4/2015
1.0.3 1,208 9/1/2015
1.0.2 1,403 7/31/2015
1.0.1 1,153 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")));