JFramework.Core 1.0.7

JFramework

Install-Package JFramework.Core -Version 1.0.7
dotnet add package JFramework.Core --version 1.0.7
<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.
paket add JFramework.Core --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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")));

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.7 522 10/27/2015
1.0.6 360 10/20/2015
1.0.5 350 10/19/2015
1.0.4 392 9/4/2015
1.0.3 376 9/1/2015
1.0.2 389 7/31/2015
1.0.1 340 7/30/2015