WPF+EntityFrameworkで簡単にログを残すソースの公開 -
WPF+EntityFrameworkで簡単にログを残すソースの公開 How to use to PutActionLog on WPF + EntityFramework EntityFrameworkなら、ソースからデータベースの作成、テーブルの作成が自動で行えるので、下記のソースさえコピペして貰えれば、データベースが、Postgresだろうが、SqlServerだろうが、Oracleだろうが自動的に全部使えるようになると思います。 DataAccess.PutActionLogにて、IPアドレス、コンピュータ名等モロモロと、引数で渡した情報を+アルファを記録しています。 ActionLog.cs モデル(Model) using System; using System.Collections.Generic; public partial class ActionLog { public int ActionLogID { get; set; } public string SystemName { get; set; } public string SystemVersion { get; set; } public string IpAddress { get; set; } public string TerminalID { get; set; } public string UserID { get; set; } public string FunctionName { get; set; } ...