MSFrame 1.1.0

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

// Install MSFrame as a Cake Tool
#tool nuget:?package=MSFrame&version=1.1.0

You can Make a BaseModel and basic base class like this:

using System; using System.Data; using System.Collections.Generic; using MSFrame; namespace Enterprise.Base

{ #region TBConfigBase public partial class TBConfigBase : BaseCore { #region Base public bool Exists(string ID) { OQL q=new OQL(); q.Add(TBConfigModel.Fields.ID,ID); return ORMUtil.Exists<TBConfigModel>(q); } public bool Exists(OQL q) { return ORMUtil.Exists<TBConfigModel>(q); } public int GetCount(OQL q) { return ORMUtil.GetCount<TBConfigModel>(q); } public object GetScalar(OQL q) { return ORMUtil.GetScalar<TBConfigModel>(q); } public string GetScalarString(OQL q) { return StringPlus.Get(ORMUtil.GetScalar<TBConfigModel>(q)); } public bool Insert(TBConfigModel model, bool debug = false) { return ORMUtil.Insert<TBConfigModel>(model,debug); } public bool Update(TBConfigModel model, bool debug = false) { return ORMUtil.Update<TBConfigModel>(model,debug); } public bool Update(OQL q) { return ORMUtil.Update<TBConfigModel>(q); } public bool Delete(TBConfigModel model, bool debug = false) { return ORMUtil.Delete<TBConfigModel>(model,debug); } public bool Delete(string ID) { OQL q=new OQL(); q.Add(TBConfigModel.Fields.ID,ID); return ORMUtil.Delete<TBConfigModel>(q); } public bool Delete(OQL q) { return ORMUtil.Delete<TBConfigModel>(q); } public TBConfigModel GetModel(string ID) { OQL q=new OQL(); q.Add(TBConfigModel.Fields.ID,ID); return ORMUtil.GetModel<TBConfigModel>(q); } public TBConfigModel GetModel(OQL q) { return ORMUtil.GetModel<TBConfigModel>(q); } public List<TBConfigModel> GetList(OQL q) { return ORMUtil.GetList<TBConfigModel>(q); } public List<TBConfigModel> GetList(DataTable dt) { return ORMUtil.GetList<TBConfigModel>(dt); } public List<TBConfigModel> GetPageList(OQL q) { return ORMUtil.GetPageList<TBConfigModel>(q); }

    public DataTable GetDataTable(OQL q)
    {
        return ORMUtil.GetDataTable<TBConfigModel>(q);
    }

    public DataTable GetPageDataTable(OQL q)
    {
        return ORMUtil.GetPageDataTable<TBConfigModel>(q);
    }
    public DataTable GetPageTable(OQL q)
    {
        return  ORMUtil.GetPageTable<TBConfigModel>(q);
    }

#endregion

}
#endregion

 #region  TBConfigModel
 [TableAttr(Name = "TBConfig", PrimaryKey = "ID",Description="")]
 public class TBConfigModel : BaseModel
 {

     #region  TBConfigFields
     public class Fields
     {
         public const string Table = "TBConfig";
         /// <summary>
         /// ID
         /// </summary>
         public const string ID = "ID";
         /// <summary>
         /// LocationID
         /// </summary>
         public const string LocationID = "LocationID";
     }
     #endregion
     private String _id ="";
     /// <summary>
     /// ID
     /// </summary>
     [FieldAttr(Name = "ID", IsKey = true, Length = 20, IsRequire = true, DbType = "nvarchar", Description="ID", IsIdentity=false, DefaultValue="")]
     public String ID
     {
         get{ return _id; }
         set{ _id = value; 
             Set("ID"); 
         }
     }

     private String _locationid ="";
     /// <summary>
     /// LocationID
     /// </summary>
     [FieldAttr(Name = "LocationID", IsKey = false, Length = 20, IsRequire = false, DbType = "nvarchar", Description="LocationID", IsIdentity=false, DefaultValue="")]
     public String LocationID
     {
         get{ return _locationid; }
         set{ _locationid = value; 
             Set("LocationID"); 
         }
     }

 }

#endregion }

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.5 442 3/29/2022
1.2.4 408 2/23/2022
1.2.3 391 2/22/2022
1.2.2 391 2/18/2022
1.2.1 404 2/18/2022
1.2.0 424 1/26/2022
1.1.9 416 1/20/2022
1.1.8 405 1/7/2022
1.1.7 423 1/4/2022
1.1.6 263 12/27/2021
1.1.5 240 12/27/2021
1.1.4 264 12/14/2021
1.1.3 311 12/8/2021
1.1.2 292 12/8/2021
1.1.1 290 12/8/2021
1.1.0 284 12/8/2021
1.0.0 304 12/8/2021

MSFrame,Contains ORM,Utilty