amorphie.core 1.1.6

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

// Install amorphie.core as a Cake Tool
#tool nuget:?package=amorphie.core&version=1.1.6                

amorphie.core

Simple tag management service for developers..

Features;

  1. Response types
  2. Enum structures
  3. Basic classes

Response types

// When you want to return object data and message..
public IResponse Result()
{
    return new Response
    {
       Data = "Example object data",
       Result = new Result(Status.Success, "Message")
    };
}

// When you want to return object data, message and message detail.
public IResponse Result()
{
    return new Response
    {
       Data = "Example object data",
       Result = new Result(Status.Success, "Message", "Message detail")
    };
}

// To return 1 entity.
public IResponse<Staff> Result()
{
    return new Response<Staff>
    {
        Data = new Staff() { Id=1,Name="Alice"},
        Result = new Result(Status.Success, "Listing successful")
    };
}

// To list.
public IResponse<List<Staff>> Result()
{
    var list = new List<Staff>() { new Staff() { Id = 1, Name = "Tom" }, new Staff() { Id = 1, Name = "Alice" } };

    return new Response<List<Staff>>
    {
       Data = list,
       Result = new Result(Status.Success, "Getirme başarılı")
     };
}

//Only when you want to return the status and explanation.
public IResponse Result()
{
    return new NoDataResponse
    {
       Result = new Result(Status.Success, "Delete successful")
    };
}

Enums

  1. Status
public enum Status
{
  [Description("Used for all successful transactions")]
  Success = 1,
  [Description("Used for all faulty and warning operations")]
  Error = 2,
}
  1. StatusType
[Flags]
public enum StatusType
{
  New = 2,
  Active = 4,
  InProgress = 8,
  Passive = 16,
  Completed = 32,
  LockedInFlow = 256,
  All = New | Active | InProgress | Passive
}
  1. StatusType
public enum HttpMethodType : byte 
{ 
    CONNECT, 
    DELETE, 
    GET, 
    HEAD, 
    OPTIONS, 
    POST, 
    PUT, 
    TRACE 
}

Base Classes

  • EntityBase //Base class includes id and other common proporties
  • EntityBaseWithOutId //Covers common properties only
  • DtoBase //Base class includes id and other common proporties
  • DtoEntityBaseWithOutId //Covers common properties only
  • Translation //This table can be used directly for the table, table class where the language values ​​are kept.
  • EntityBaseLog //Base class for log tables
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows 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.1.37 114 11/6/2024
1.1.36 43 11/5/2024
1.1.35 78 10/10/2024
1.1.34 172 9/4/2024
1.1.33 94 8/29/2024
1.1.32 734 8/16/2024
1.1.31 180 8/7/2024
1.1.30 3,089 4/1/2024
1.1.29 141 3/27/2024
1.1.28 1,230 2/16/2024
1.1.27 129 2/15/2024
1.1.26 1,725 2/1/2024
1.1.25 351 1/30/2024
1.1.24 162 1/12/2024
1.1.23 112 1/11/2024
1.1.22 114 1/11/2024
1.1.21 106 1/10/2024
1.1.18 114 1/9/2024
1.1.17 219 12/11/2023
1.1.16 129 12/8/2023
1.1.15 108 12/8/2023
1.1.14 483 12/5/2023
1.1.13 144 12/5/2023
1.1.10 139 12/5/2023
1.1.9 125 12/5/2023
1.1.8 179 10/26/2023
1.1.7 480 8/28/2023
1.1.6 175 8/25/2023
1.1.5 157 8/25/2023
1.1.4 2,046 7/7/2023
1.1.3 399 7/6/2023
1.1.2 172 7/5/2023
1.1.1 173 7/4/2023
1.1.0 202 6/15/2023
1.0.11 255 6/7/2023
1.0.10 177 6/6/2023
1.0.9 179 6/6/2023
1.0.8 156 6/5/2023
1.0.7 157 6/5/2023
1.0.6 166 5/31/2023
1.0.5 266 5/22/2023
1.0.4 165 5/15/2023
1.0.3 172 5/15/2023
1.0.2 391 3/29/2023
1.0.1 437 3/2/2023
1.0.0 281 3/2/2023