content
stringlengths 5
1.04M
| avg_line_length
float64 1.75
12.9k
| max_line_length
int64 2
244k
| alphanum_fraction
float64 0
0.98
| licenses
sequence | repository_name
stringlengths 7
92
| path
stringlengths 3
249
| size
int64 5
1.04M
| lang
stringclasses 2
values |
---|---|---|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlizzardApiReader.WorldOfWarcraft.Models
{
public class CharacterFeedItem
{
//Type: ACHIEVEMENT
public string Type { get; set; }
//TODO: Review the formating of timestamp
public long Timestamp { get; set; }
public Achievement Achievement { get; set; }
public bool FeatOfStrength { get; set; }
//Type: CRITERIA
public Criteria Criteria { get; set; }
//Type: BOSSKILL
public int Quantity { get; set; }
public string Name { get; set; }
//Type: LOOT
public int ItemId { get; set; }
public string context { get; set; }
public int[] BonusLists { get; set; }
}
}
| 25.625 | 52 | 0.615854 | [
"MIT"
] | avivbiton/BlizzardApiReader | BlizzardApiReader.WorldOfWarcraft/Models/CharacterFeedItem.cs | 822 | C# |
using System;
using System.IO;
using System.Reflection;
namespace QuadrantsImageComparerLib.Core
{
/// <summary>
/// Les méthodes d'extensions lié au 'Path'
/// </summary>
public static class PathExtension
{
/// <summary>
/// La longueur maximal d'un path sur ce système
/// </summary>
public static int MaxPathLenght { get; } = SetMaxPathLenght();
private const int DEFAULT_VALUE_UNC = 260; // valeur par défaut UNC
private static int SetMaxPathLenght()
{
try
{
// reflection
var maxPathField = typeof(Path).GetField("MaxPath",
BindingFlags.Static |
BindingFlags.GetField |
BindingFlags.NonPublic);
return (int?)maxPathField?.GetValue(null) ?? DEFAULT_VALUE_UNC;
}
catch (Exception)
{
return DEFAULT_VALUE_UNC;
}
}
}
}
| 27.243243 | 79 | 0.534722 | [
"MIT"
] | Berreip/QuadrantsImageComparer | QuadrantsImageComparerLib/Core/PathExtension.cs | 1,014 | C# |
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AnyStore.BLL
{
class transactionsBLL
{
public int id { get; set; }
public string type { get; set; }
public int dea_cust_id { get; set; }
public decimal grandTotal { get; set; }
public DateTime transaction_date { get; set; }
public decimal tax { get; set; }
public decimal discount { get; set; }
public int added_by { get; set; }
public DataTable transactionDetails { get; set; }
}
}
| 25.625 | 57 | 0.635772 | [
"MIT"
] | GodloveMark/OneStore | AnyStore/BLL/transactionsBLL.cs | 617 | C# |
/// This code was generated by
/// \ / _ _ _| _ _
/// | (_)\/(_)(_|\/| |(/_ v1.0.0
/// / /
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml.Linq;
namespace Twilio.TwiML.Voice
{
/// <summary>
/// Task TwiML Noun
/// </summary>
public class Task : TwiML
{
/// <summary>
/// TaskRouter task attributes
/// </summary>
public string Body { get; set; }
/// <summary>
/// Task priority
/// </summary>
public int? Priority { get; set; }
/// <summary>
/// Timeout associated with task
/// </summary>
public int? Timeout { get; set; }
/// <summary>
/// Create a new Task
/// </summary>
/// <param name="body"> TaskRouter task attributes, the body of the TwiML Element. Also accepts stringified object
/// </param>
/// <param name="priority"> Task priority </param>
/// <param name="timeout"> Timeout associated with task </param>
public Task(string body = null, int? priority = null, int? timeout = null) : base("Task")
{
this.Body = body;
this.Priority = priority;
this.Timeout = timeout;
}
/// <summary>
/// Return the body of the TwiML tag
/// </summary>
protected override string GetElementBody()
{
return this.Body != null ? this.Body : string.Empty;
}
/// <summary>
/// Return the attributes of the TwiML tag
/// </summary>
protected override List<XAttribute> GetElementAttributes()
{
var attributes = new List<XAttribute>();
if (this.Priority != null)
{
attributes.Add(new XAttribute("priority", this.Priority.ToString()));
}
if (this.Timeout != null)
{
attributes.Add(new XAttribute("timeout", this.Timeout.ToString()));
}
return attributes;
}
/// <summary>
/// Append a child TwiML element to this element returning this element to allow chaining.
/// </summary>
/// <param name="childElem"> Child TwiML element to add </param>
public new Task Append(TwiML childElem)
{
return (Task) base.Append(childElem);
}
/// <summary>
/// Add freeform key-value attributes to the generated xml
/// </summary>
/// <param name="key"> Option key </param>
/// <param name="value"> Option value </param>
public new Task SetOption(string key, object value)
{
return (Task) base.SetOption(key, value);
}
}
} | 30.582418 | 122 | 0.519224 | [
"MIT"
] | BrimmingDev/twilio-csharp | src/Twilio/TwiML/Voice/Task.cs | 2,783 | C# |
using uScoober.Text;
namespace uScoober.Extensions
{
public static class StringExtensions
{
public static bool Contains(this string value, string option) {
return new StringContainsResult(value, option).IsMatch;
}
public static bool Contains(this string value, out StringContainsResult result, string option) {
result = new StringContainsResult(value, option);
return result.IsMatch;
}
public static bool ContainsAny(this string value, params string[] options) {
StringContainsResult result;
return ContainsAny(value, out result, options);
}
public static bool ContainsAny(this string value, out StringContainsResult result, params string[] options) {
if (options == null) {
result = null;
return false;
}
for (int i = 0; i < options.Length; i++) {
result = new StringContainsResult(value, options[i]);
if (!result.IsMatch) {
continue;
}
return true;
}
result = null;
return false;
}
public static bool EndsWith(this string value, string ending) {
return new StringEndsWithResult(value, ending).IsMatch;
}
public static bool EndsWithAny(this string value, params string[] options) {
string match;
return EndsWithAny(value, out match, options);
}
public static bool EndsWithAny(this string value, out string match, params string[] options) {
for (int i = 0; i < options.Length; i++) {
var result = new StringEndsWithResult(value, options[i]);
if (!result.IsMatch) {
continue;
}
match = result.Option;
return true;
}
match = null;
return false;
}
}
} | 33.55 | 117 | 0.547442 | [
"MIT"
] | EddieGarmon/uScoober | Core/uScoober/Shared/uScoober/Extensions/StringExtensions.cs | 2,015 | C# |
namespace Raymaker.HttpClientDotnetFramework
{
public class Config : IConfig
{
public string HmacKey { get; set; } = "3adb14c908032c1b001dbc86315cda6f97098b4d5f764ac540afdbdfb40b8e84";
}
}
| 26.25 | 113 | 0.738095 | [
"MIT"
] | MunroRaymaker/Raymaker.HttpClientFactoryExample | Raymaker.HttpClientDotnetFramework/Config.cs | 212 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
namespace Log4Net.CommonBLL
{
public static class SyndicationFeedFacade
{
public static SyndicationFeed GetLog()
{
string urlOfList = string.Format("{0}{1}/{2}", Framework.Web.WebFormApplicationApplicationVariables.WebAppRootUrl, "Log", "WPCommonOfLog");
SyndicationFeed feed = new SyndicationFeed(Log4Net.Resx.UIStringResourcePerEntityLog.Rss_Title_of_Log, Log4Net.Resx.UIStringResourcePerEntityLog.Rss_Description_of_Log, new Uri(urlOfList));
//feed.Authors.Add(new SyndicationPerson(Log4Net.Resx.UIStringResourcePerEntityLog.));
//feed.Categories.Add(new SyndicationCategory(Log4Net.Resx.UIStringResourcePerEntityLog.));
Log4Net.CommonBLL.LogService instance = new Log4Net.CommonBLL.LogService();
var request = new Log4Net.CommonBLLEntities.LogRequestMessageUserDefinedOfAll();
request.QueryPagingSetting = new Framework.EntityContracts.QueryPagingSetting(1, 10);
request.QueryOrderBySettingCollection = new Framework.EntityContracts.QueryOrderBySettingCollection("LastModifiedDateTime:DESC");
var fromDataSource = instance.GetCollectionOfRssItemOfAll(request);
List<SyndicationItem> items = new List<SyndicationItem>();
if (fromDataSource.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK)
{
foreach (var datasourceItem in fromDataSource.Message)
{
//string urlOfEntityRelated = string.Format("{0}{1}/{2}?{3}", Log4Net.Resx.UIStringResourcePerEntityLog.HomeOwner, "Log", "WPEntityRelatedOfLog", "{Query String Parameters}");
SyndicationItem item1 = new SyndicationItem(
datasourceItem.Title,
datasourceItem.Description,
new Uri(urlOfList), // should be urlOfEntityRelated, should enter query string parameters
datasourceItem.IdentifierInString,
datasourceItem.PubDate);
items.Add(item1);
}
}
feed.Items = items;
return feed;
}
}
}
| 46.470588 | 201 | 0.672152 | [
"MIT"
] | ntierontime/Log4Net | Log4Net/Services/CommonBLL/SyndicationFeedFacade.cs | 2,370 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using Hapil.Members;
using Hapil.Operands;
namespace Hapil.Statements
{
internal class RawILStatement : StatementBase
{
private readonly Action<ILGenerator> m_Script;
//-----------------------------------------------------------------------------------------------------------------------------------------------------
public RawILStatement(Action<ILGenerator> script)
{
m_Script = script;
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------
public override void Emit(ILGenerator il, MethodMember ownerMethod)
{
m_Script(il);
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------
public override void AcceptVisitor(OperandVisitorBase visitor)
{
// nothing
}
}
}
| 27.947368 | 153 | 0.420904 | [
"MIT"
] | felix-b/Hapil | Source/Hapil/Statements/RawILStatement.cs | 1,064 | C# |
using System;
using System.IO;
using NewLife;
using NewLife.Serialization;
using Xunit;
namespace XUnitTest.Serialization
{
public class BinaryTests
{
[Fact]
public void Fast()
{
var model = new MyModel { Code = 1234, Name = "Stone" };
var pk = Binary.FastWrite(model);
Assert.Equal(8, pk.Total);
Assert.Equal("D2090553746F6E65", pk.ToHex());
Assert.Equal("0gkFU3RvbmU=", pk.ToArray().ToBase64());
var model2 = Binary.FastRead<MyModel>(pk.GetStream());
Assert.Equal(model.Code, model2.Code);
Assert.Equal(model.Name, model2.Name);
var ms = new MemoryStream();
Binary.FastWrite(model, ms);
Assert.Equal("D2090553746F6E65", ms.ToArray().ToHex());
}
private class MyModel
{
public Int32 Code { get; set; }
public String Name { get; set; }
}
}
} | 26.972222 | 68 | 0.556128 | [
"MIT"
] | NewLifeX/X | XUnitTest.Core/Serialization/BinaryTests.cs | 973 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace IC.Tests.App.UIAccessibility.Appium.Interfaces
{
public interface IViewFeatBlue : IViewDefBlue
{
}
}
| 17.454545 | 56 | 0.755208 | [
"BSD-3-Clause"
] | aurnoi1/IC-Navigation | tests/IC.Tests.App.UIAccessibility/Appium/Interfaces/IViewFeatBlue.cs | 194 | C# |
using System;
using System.Collections.Generic;
namespace KeyPayV2.Sg.Enums
{
public enum LeaveCategoryTypeEnum
{
Standard,
LongServiceLeave,
StatutorySickLeave,
StatutoryMaternityLeave,
PersonalCarersLeave,
StatutoryAdoptionLeave,
StatutoryPaternityLeave,
StatutoryParentalBereavementLeave
}
}
| 21.611111 | 42 | 0.660668 | [
"MIT"
] | KeyPay/keypay-dotnet-v2 | src/keypay-dotnet/Sg/Enums/LeaveCategoryTypeEnum.cs | 389 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.ComponentModel
{
/// <summary>
/// Specifies the default property for a component.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public sealed class DefaultPropertyAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref='System.ComponentModel.DefaultPropertyAttribute'/> class.
/// </summary>
public DefaultPropertyAttribute(string name)
{
Name = name;
}
/// <summary>
/// Gets the name of the default property for the component this attribute is
/// bound to.
/// </summary>
public string Name { get; }
/// <summary>
/// Specifies the default value for the <see cref='System.ComponentModel.DefaultPropertyAttribute'/>, which is <see langword='null'/>. This
/// <see langword='static '/>field is read-only.
/// </summary>
public static readonly DefaultPropertyAttribute Default = new DefaultPropertyAttribute(null);
public override bool Equals(object obj)
{
return (obj is DefaultPropertyAttribute other) && other.Name == Name;
}
public override int GetHashCode() => base.GetHashCode();
}
}
| 35.05 | 147 | 0.630528 | [
"MIT"
] | 2m0nd/runtime | src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DefaultPropertyAttribute.cs | 1,402 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("GraphQLDotNetCore")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("GraphQLDotNetCore")]
[assembly: System.Reflection.AssemblyTitleAttribute("GraphQLDotNetCore")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
| 41.708333 | 80 | 0.654346 | [
"MIT"
] | spdeux/GraphQL | GraphQLDotNetCore/GraphQLDotNetCore/obj/Debug/netcoreapp2.2/GraphQLDotNetCore.AssemblyInfo.cs | 1,001 | C# |
using SuperSocket.JTT.JTTBase.Interface;
using System;
using System.Collections.Generic;
using System.Text;
namespace SuperSocket.JTT.JTT1078.MessageBody.Internal
{
/// <summary>
/// 远程录像下载控制请求应答消息数据体
/// </summary>
/// <remarks>
/// <para>业务类:<see cref="Const.DataType.UP_DOWNLOAD_MSG"/></para>
/// <para>链路类型:主链路</para>
/// <para>消息方向:企业视频监控平台向政府视频监管平台</para>
/// <para>子业务类型标识:<see cref="Const.SubDataType.UP_DOWNLOAD_MSG_CONTROL_ACK"/></para>
/// <para>描述:企业视频监控平台对政府视频监管平台发送的下载控制请求的应答消息。</para>
/// <para>共1字节</para>
/// <para>JTT1078-2016表60</para>
/// </remarks>
public class DownloadControlReplyBody : IJTTMessageBody
{
/// <summary>
/// 应答结果
/// <see cref="Const.ReplyResult"/>
/// </summary>
/// <remarks>1字节</remarks>
public byte Result { get; set; }
/// <summary>
/// 应答结果
/// </summary>
/// <remarks>映射值</remarks>
public string Result_Mapping { get; set; }
}
}
| 28.472222 | 88 | 0.596098 | [
"Apache-2.0"
] | Lc3586/SuperSocket.JTT | src/Protocols/JTT1078/MessageBody/Internal/DownloadControlReplyBody.cs | 1,249 | C# |
#region copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss Industrielle Messtechnik GmbH */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2021 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
namespace Zeiss.PiWeb.MeshModel.Tests
{
#region usings
using System.IO;
using NUnit.Framework;
#endregion
[TestFixture]
public class ReaderWriterExtensionsTest
{
#region constants
private const int ArrayHeaderSize = 4;
#endregion
#region methods
[Test, Description( "Given: float array, When: writing to binary stream, Then: output is correct." )]
public void TestWritingFloatArray()
{
// ## Given ##
var floats = new[] { 1f, 2f, 3f, 4f, 5f, 6f };
var bytes = new byte[ floats.Length * sizeof( float ) + ArrayHeaderSize ];
float[] readFloats;
// ## When ##
using( var stream = new MemoryStream( bytes ) )
{
using var binaryWriter = new BinaryWriter( stream );
binaryWriter.WriteArray( FloatIo.Instance, floats );
}
using( var stream = new MemoryStream( bytes ) )
{
using var binaryReader = new BinaryReader( stream );
readFloats = binaryReader.ReadLengthAndArray( FloatIo.Instance );
}
// ## Then ##
Assert.That( readFloats, Is.EquivalentTo( floats ) );
}
[Test, Description( "Given: vector array, When: writing to binary stream, Then: output is correct." )]
public void TestWritingVector3FArray()
{
// ## Given ##
var vectors = MeshTest.Create4Positions();
var bytes = new byte[ vectors.Length * sizeof( float ) * 3 + ArrayHeaderSize ];
Vector3F[] readVectors;
// ## When ##
using( var stream = new MemoryStream( bytes ) )
{
using var binaryWriter = new BinaryWriter( stream );
binaryWriter.WriteArray( Vector3FIo.Instance, vectors );
}
using( var stream = new MemoryStream( bytes ) )
{
using var binaryReader = new BinaryReader( stream );
readVectors = binaryReader.ReadLengthAndArray( Vector3FIo.Instance );
}
// ## Then ##
Assert.That( readVectors, Is.EquivalentTo( vectors ) );
}
[Test, Description( "Given: vector array, When: writing to binary stream, Then: output is correct." )]
public void TestWritingVector2FArray()
{
// ## Given ##
var vectors = MeshTest.Create4UVs();
var bytes = new byte[ vectors.Length * sizeof( float ) * 2 + ArrayHeaderSize ];
Vector2F[] readVectors;
// ## When ##
using( var stream = new MemoryStream( bytes ) )
{
using var binaryWriter = new BinaryWriter( stream );
binaryWriter.WriteArray( Vector2FIo.Instance, vectors );
}
using( var stream = new MemoryStream( bytes ) )
{
using var binaryReader = new BinaryReader( stream );
readVectors = binaryReader.ReadLengthAndArray( Vector2FIo.Instance );
}
// ## Then ##
Assert.That( readVectors, Is.EquivalentTo( vectors ) );
}
[Test, Description( "Given: color array, When: writing to binary stream, Then: output is correct." )]
public void TestWritingColorArray()
{
// ## Given ##
var colors = MeshTest.Create4Colors();
var bytes = new byte[ colors.Length * sizeof( byte ) * 4 + ArrayHeaderSize ];
Color[] readColors;
// ## When ##
using( var stream = new MemoryStream( bytes ) )
{
using var binaryWriter = new BinaryWriter( stream );
binaryWriter.WriteArray( ColorIo.Instance, colors );
}
using( var stream = new MemoryStream( bytes ) )
{
using var binaryReader = new BinaryReader( stream );
readColors = binaryReader.ReadLengthAndArray( ColorIo.Instance );
}
// ## Then ##
Assert.That( readColors, Is.EquivalentTo( colors ) );
}
[Test, Description( "Given: double array, When: writing to binary stream, Then: output is correct." )]
public void TestReadingDoubleArrayAsVector3F()
{
// ## Given ##
var doubles = new[] { 1.2, 1.3, 2.0, 3.0, 6.0, 8.5 };
var bytes = new byte[ doubles.Length * sizeof( double ) + ArrayHeaderSize ];
var expectedVectors = new[] { new Vector3F( 1.2f, 1.3f, 2.0f ), new Vector3F( 3.0f, 6.0f, 8.5f ) };
Vector3F[] readVectors;
// ## When ##
using( var stream = new MemoryStream( bytes ) )
{
using var binaryWriter = new BinaryWriter( stream );
binaryWriter.Write( doubles.Length / 3 );
foreach( var d in doubles )
{
binaryWriter.Write( d );
}
}
using( var stream = new MemoryStream( bytes ) )
{
using var binaryReader = new BinaryReader( stream );
readVectors = binaryReader.ReadDoubleArrayAsVector3FArray();
}
// ## Then ##
Assert.That( readVectors, Is.EquivalentTo( expectedVectors ) );
}
#endregion
}
} | 28.196532 | 105 | 0.608446 | [
"BSD-3-Clause"
] | ZEISS-PiWeb/PiWeb-MeshModel | src/Tests/ReaderWriterExtensionsTest.cs | 4,708 | C# |
/* Copyright 2021-present MongoDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
using System.Linq;
using FluentAssertions;
using MongoDB.Bson;
using MongoDB.Driver.Core;
using MongoDB.Driver.Core.Bindings;
using MongoDB.Driver.Core.Clusters;
using MongoDB.Driver.Core.Events;
using MongoDB.Driver.Core.Misc;
using MongoDB.Driver.Core.TestHelpers;
using MongoDB.Driver.Core.TestHelpers.XunitExtensions;
using MongoDB.Driver.TestHelpers;
using Xunit;
namespace MongoDB.Driver.Tests.Specifications.crud.prose_tests
{
public class CrudProseTests
{
[SkippableFact]
public void WriteConcernError_details_should_expose_writeConcernError_errInfo()
{
var failPointFeature = CoreTestConfiguration.Cluster.Description.Type == ClusterType.Sharded
? Feature.FailPointsFailCommandForSharded
: Feature.FailPointsFailCommand;
RequireServer.Check().Supports(failPointFeature);
var failPointCommand = @"
{
configureFailPoint : 'failCommand',
data : {
failCommands : ['insert'],
writeConcernError : {
code : 100,
codeName : 'UnsatisfiableWriteConcern',
errmsg : 'Not enough data-bearing nodes',
errInfo : {
writeConcern : {
w : 2,
wtimeout : 0,
provenance : 'clientSupplied'
}
}
}
},
mode: { times: 1 }
}";
using (ConfigureFailPoint(failPointCommand))
{
var client = DriverTestConfiguration.Client;
var database = client.GetDatabase(DriverTestConfiguration.DatabaseNamespace.DatabaseName);
var collection = database.GetCollection<BsonDocument>(DriverTestConfiguration.CollectionNamespace.CollectionName);
var exception = Record.Exception(() => collection.InsertOne(new BsonDocument()));
exception.Should().NotBeNull();
var bulkWriteException = exception.InnerException.Should().BeOfType<MongoBulkWriteException<BsonDocument>>().Subject;
var writeConcernError = bulkWriteException.WriteConcernError;
writeConcernError.Code.Should().Be(100);
writeConcernError.CodeName.Should().Be("UnsatisfiableWriteConcern");
writeConcernError.Details.Should().Be("{ writeConcern : { w : 2, wtimeout : 0, provenance : 'clientSupplied' } }");
writeConcernError.Message.Should().Be("Not enough data-bearing nodes");
}
}
[SkippableFact]
public void WriteError_details_should_expose_writeErrors_errInfo()
{
RequireServer.Check().VersionGreaterThanOrEqualTo(new SemanticVersion(5, 0, 0, ""));
var eventCapturer = new EventCapturer().Capture<CommandSucceededEvent>(e => e.CommandName == "insert");
var collectionName = "WriteError_details_should_expose_writeErrors_errInfo";
var collectionValidator = BsonDocument.Parse("{ x : { $type : 'string' } }");
var collectionOptions = new CreateCollectionOptions<BsonDocument> { Validator = collectionValidator };
Exception exception;
using (var client = CreateDisposableClient(eventCapturer))
{
var database = client.GetDatabase(DriverTestConfiguration.DatabaseNamespace.DatabaseName);
database.CreateCollection(collectionName, collectionOptions);
var collection = database.GetCollection<BsonDocument>(collectionName);
exception = Record.Exception(() => collection.InsertOne(new BsonDocument("x", 1)));
}
// Assert MongoWriteException WriteError
exception.Should().NotBeNull();
var mongoWriteExcepion = exception.Should().BeOfType<MongoWriteException>().Subject;
var writeError = mongoWriteExcepion.WriteError;
var objectId = writeError.Details["failingDocumentId"].AsObjectId;
var expectedWriteErrorDetails = GetExpectedWriteErrorDetails(objectId);
writeError.Code.Should().Be(121);
writeError.Message.Should().Be("Document failed validation");
writeError.Details.Should().BeEquivalentTo(expectedWriteErrorDetails);
// Assert MongoBulkWriteException WriteError
exception.InnerException.Should().NotBeNull();
var bulkWriteException = exception.InnerException.Should().BeOfType<MongoBulkWriteException<BsonDocument>>().Subject;
bulkWriteException.WriteErrors.Should().HaveCount(1);
var bulkWriteWriteError = bulkWriteException.WriteErrors.Single();
bulkWriteWriteError.Code.Should().Be(121);
bulkWriteWriteError.Message.Should().Be("Document failed validation");
bulkWriteWriteError.Details.Should().BeEquivalentTo(expectedWriteErrorDetails);
// Assert exception messages
var expectedWriteErrorMessage = GetExpectedWriteErrorMessage(expectedWriteErrorDetails.ToJson());
mongoWriteExcepion.Message.Should().Be($"A write operation resulted in an error. WriteError: {expectedWriteErrorMessage}.");
bulkWriteException.Message.Should().Be($"A bulk write operation resulted in one or more errors. WriteErrors: [ {expectedWriteErrorMessage} ].");
// Assert writeErrors[0].errInfo
eventCapturer.Events.Should().HaveCount(1);
var commandSucceededEvent = (CommandSucceededEvent)eventCapturer.Events.Single();
var writeErrors = commandSucceededEvent.Reply["writeErrors"].AsBsonArray;
writeErrors.Values.Should().HaveCount(1);
var errorInfo = writeErrors.Values.Single()["errInfo"].AsBsonDocument;
errorInfo.Should().BeEquivalentTo(expectedWriteErrorDetails);
string GetExpectedWriteErrorMessage(string expectedWriteErrorDetails)
{
return $"{{ Category : \"Uncategorized\", Code : 121, Message : \"Document failed validation\", Details : \"{expectedWriteErrorDetails}\" }}";
}
BsonDocument GetExpectedWriteErrorDetails(ObjectId objectId)
{
return BsonDocument.Parse($"{{ failingDocumentId : {objectId.ToJson()}, details : {{ operatorName : \"$type\", specifiedAs : {{ x : {{ $type : \"string\" }} }}, reason : \"type did not match\", consideredValue : 1, consideredType : \"int\" }} }}");
}
}
// private methods
private FailPoint ConfigureFailPoint(string failpointCommand)
{
var cluster = DriverTestConfiguration.Client.Cluster;
var session = NoCoreSession.NewHandle();
return FailPoint.Configure(cluster, session, BsonDocument.Parse(failpointCommand));
}
private DisposableMongoClient CreateDisposableClient(EventCapturer eventCapturer)
{
return DriverTestConfiguration.CreateDisposableClient((MongoClientSettings settings) =>
{
settings.HeartbeatInterval = TimeSpan.FromMilliseconds(5);
settings.ClusterConfigurator = c => c.Subscribe(eventCapturer);
});
}
}
}
| 49.779141 | 264 | 0.639142 | [
"Apache-2.0"
] | MikalaiMazurenka/mongo-csharp-driver | tests/MongoDB.Driver.Tests/Specifications/crud/prose-tests/CrudProseTests.cs | 8,116 | C# |
using System;
using System.Web;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using OldBoardGamesNeedLoveToo.Auth;
namespace OldBoardGamesNeedLoveToo.Web.Account
{
public partial class ManagePassword : System.Web.UI.Page
{
protected string SuccessMessage
{
get;
private set;
}
private bool HasPassword(ApplicationUserManager manager)
{
return manager.HasPassword(User.Identity.GetUserId());
}
protected void Page_Load(object sender, EventArgs e)
{
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
if (!IsPostBack)
{
// Determine the sections to render
if (HasPassword(manager))
{
changePasswordHolder.Visible = true;
}
else
{
setPassword.Visible = true;
changePasswordHolder.Visible = false;
}
// Render success message
var message = Request.QueryString["m"];
if (message != null)
{
// Strip the query string from action
Form.Action = ResolveUrl("~/Account/Manage");
}
}
}
protected void ChangePassword_Click(object sender, EventArgs e)
{
if (IsValid)
{
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
var signInManager = Context.GetOwinContext().Get<ApplicationSignInManager>();
IdentityResult result = manager.ChangePassword(User.Identity.GetUserId(), CurrentPassword.Text, NewPassword.Text);
if (result.Succeeded)
{
var user = manager.FindById(User.Identity.GetUserId());
signInManager.SignIn( user, isPersistent: false, rememberBrowser: false);
Response.Redirect("~/Account/Manage?m=ChangePwdSuccess");
}
else
{
AddErrors(result);
}
}
}
protected void SetPassword_Click(object sender, EventArgs e)
{
if (IsValid)
{
// Create the local login info and link the local account to the user
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
IdentityResult result = manager.AddPassword(User.Identity.GetUserId(), password.Text);
if (result.Succeeded)
{
Response.Redirect("~/Account/Manage?m=SetPwdSuccess");
}
else
{
AddErrors(result);
}
}
}
private void AddErrors(IdentityResult result)
{
foreach (var error in result.Errors)
{
ModelState.AddModelError("", error);
}
}
}
} | 32.639175 | 130 | 0.516425 | [
"MIT"
] | TheFTeam/OldBoardGamesNeedLoveToo | OldBoardGamesNeedLoveToo/OldBoardGamesNeedLoveToo.Web/Account/ManagePassword.aspx.cs | 3,168 | C# |
using System;
namespace BaiduPanDownloadWpf.Infrastructure.Exceptions
{
public class LoginException: Exception
{
public ClientLoginStateEnum LoginType { get; private set; }
public LoginException(string message, ClientLoginStateEnum loginType) : base(message)
{
LoginType = loginType;
}
}
}
| 23.266667 | 93 | 0.676218 | [
"MIT"
] | GoingTime/Accelerider.Windows | BaiduPanDownloadWpf.Infrastructure/Exceptions/LoginException.cs | 351 | C# |
using System;
using System.Xml;
using YaCloudKit.Core;
using YaCloudKit.MQ.Model;
using YaCloudKit.MQ.Model.Responses;
namespace YaCloudKit.MQ.Marshallers
{
public class SendMessageBatchResponseUnmarshaller : ResponseUnmarshaller
{
public override T Unmarshall<T>(IResponseContext context)
{
try
{
var response = new SendMessageBatchResponse();
ResultUnmarshall(context, response);
var xmlRootNode = GetXmlElement(context.ContentStream);
if (TryGetXmlElements(xmlRootNode, "SendMessageBatchResult/BatchResultErrorEntry", out var batchErrorList))
BatchResultErrorEntryUnmarshaller(batchErrorList, response.BatchResultErrorEntry);
if (TryGetXmlElements(xmlRootNode, "SendMessageBatchResult/SendMessageBatchResultEntry", out var batchResultList))
{
foreach (XmlNode item in batchResultList)
{
var resultEntry = new SendMessageBatchResultEntry();
resultEntry.Id = item.SelectSingleNode("Id")?.InnerText;
resultEntry.MD5OfMessageAttributes = item.SelectSingleNode("MD5OfMessageAttributes")?.InnerText;
resultEntry.MD5OfMessageBody = item.SelectSingleNode("MD5OfMessageBody")?.InnerText;
resultEntry.MessageId = item.SelectSingleNode("MessageId")?.InnerText;
resultEntry.SequenceNumber = item.SelectSingleNode("SequenceNumber")?.InnerText;
response.SendMessageBatchResultEntry.Add(resultEntry);
}
}
response.ResponseMetadata.RequestId = xmlRootNode.SelectSingleNode("ResponseMetadata/RequestId")?.InnerText;
return response as T;
}
catch (Exception ex)
{
throw ErrorUnmarshall(ex.Message, ex, context.StatusCode);
}
}
}
}
| 43.361702 | 130 | 0.619235 | [
"MIT"
] | gkurbesov/YaCloudKit | src/YaCloudKit.MQ/Marshallers/SendMessageBatchResponseUnmarshaller.cs | 2,040 | C# |
// <auto-generated />
using System;
using AccountingSystems.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace AccountingSystems.Migrations
{
[DbContext(typeof(AccountingSystemsDbContext))]
[Migration("20200415103255_CreatorUsername_toOtherTbls")]
partial class CreatorUsername_toOtherTbls
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "3.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Abp.Application.Editions.Edition", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
.HasMaxLength(32);
b.HasKey("Id");
b.ToTable("AbpEditions");
});
modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("Discriminator")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.HasKey("Id");
b.ToTable("AbpFeatures");
b.HasDiscriminator<string>("Discriminator").HasValue("FeatureSetting");
});
modelBuilder.Entity("Abp.Auditing.AuditLog", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<string>("BrowserInfo")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("ClientIpAddress")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<string>("ClientName")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<string>("CustomData")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property<string>("Exception")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property<int>("ExecutionDuration")
.HasColumnType("int");
b.Property<DateTime>("ExecutionTime")
.HasColumnType("datetime(6)");
b.Property<int?>("ImpersonatorTenantId")
.HasColumnType("int");
b.Property<long?>("ImpersonatorUserId")
.HasColumnType("bigint");
b.Property<string>("MethodName")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<string>("Parameters")
.HasColumnType("varchar(1024) CHARACTER SET utf8mb4")
.HasMaxLength(1024);
b.Property<string>("ReturnValue")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("ServiceName")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long?>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("TenantId", "ExecutionDuration");
b.HasIndex("TenantId", "ExecutionTime");
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpAuditLogs");
});
modelBuilder.Entity("Abp.Authorization.PermissionSetting", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("Discriminator")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<bool>("IsGranted")
.HasColumnType("tinyint(1)");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("TenantId", "Name");
b.ToTable("AbpPermissions");
b.HasDiscriminator<string>("Discriminator").HasValue("PermissionSetting");
});
modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<string>("ClaimType")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<string>("ClaimValue")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<int>("RoleId")
.HasColumnType("int");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("RoleId");
b.HasIndex("TenantId", "ClaimType");
b.ToTable("AbpRoleClaims");
});
modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("EmailAddress")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.Property<long?>("UserLinkId")
.HasColumnType("bigint");
b.Property<string>("UserName")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("EmailAddress");
b.HasIndex("UserName");
b.HasIndex("TenantId", "EmailAddress");
b.HasIndex("TenantId", "UserId");
b.HasIndex("TenantId", "UserName");
b.ToTable("AbpUserAccounts");
});
modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<string>("ClaimType")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<string>("ClaimValue")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("UserId");
b.HasIndex("TenantId", "ClaimType");
b.ToTable("AbpUserClaims");
});
modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<string>("LoginProvider")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<string>("ProviderKey")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("UserId");
b.HasIndex("TenantId", "UserId");
b.HasIndex("TenantId", "LoginProvider", "ProviderKey");
b.ToTable("AbpUserLogins");
});
modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<string>("BrowserInfo")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("ClientIpAddress")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<string>("ClientName")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<byte>("Result")
.HasColumnType("tinyint unsigned");
b.Property<string>("TenancyName")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long?>("UserId")
.HasColumnType("bigint");
b.Property<string>("UserNameOrEmailAddress")
.HasColumnType("varchar(255) CHARACTER SET utf8mb4")
.HasMaxLength(255);
b.HasKey("Id");
b.HasIndex("UserId", "TenantId");
b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result");
b.ToTable("AbpUserLoginAttempts");
});
modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<long>("OrganizationUnitId")
.HasColumnType("bigint");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("TenantId", "OrganizationUnitId");
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpUserOrganizationUnits");
});
modelBuilder.Entity("Abp.Authorization.Users.UserRole", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<int>("RoleId")
.HasColumnType("int");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("UserId");
b.HasIndex("TenantId", "RoleId");
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpUserRoles");
});
modelBuilder.Entity("Abp.Authorization.Users.UserToken", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime?>("ExpireDate")
.HasColumnType("datetime(6)");
b.Property<string>("LoginProvider")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<string>("Name")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.Property<string>("Value")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.HasKey("Id");
b.HasIndex("UserId");
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpUserTokens");
});
modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<bool>("IsAbandoned")
.HasColumnType("tinyint(1)");
b.Property<string>("JobArgs")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(1048576);
b.Property<string>("JobType")
.IsRequired()
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<DateTime?>("LastTryTime")
.HasColumnType("datetime(6)");
b.Property<DateTime>("NextTryTime")
.HasColumnType("datetime(6)");
b.Property<byte>("Priority")
.HasColumnType("tinyint unsigned");
b.Property<short>("TryCount")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("IsAbandoned", "NextTryTime");
b.ToTable("AbpBackgroundJobs");
});
modelBuilder.Entity("Abp.Configuration.Setting", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long?>("UserId")
.HasColumnType("bigint");
b.Property<string>("Value")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.HasKey("Id");
b.HasIndex("UserId");
b.HasIndex("TenantId", "Name", "UserId")
.IsUnique();
b.ToTable("AbpSettings");
});
modelBuilder.Entity("Abp.EntityHistory.EntityChange", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("ChangeTime")
.HasColumnType("datetime(6)");
b.Property<byte>("ChangeType")
.HasColumnType("tinyint unsigned");
b.Property<long>("EntityChangeSetId")
.HasColumnType("bigint");
b.Property<string>("EntityId")
.HasColumnType("varchar(48) CHARACTER SET utf8mb4")
.HasMaxLength(48);
b.Property<string>("EntityTypeFullName")
.HasColumnType("varchar(192) CHARACTER SET utf8mb4")
.HasMaxLength(192);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("EntityChangeSetId");
b.HasIndex("EntityTypeFullName", "EntityId");
b.ToTable("AbpEntityChanges");
});
modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<string>("BrowserInfo")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("ClientIpAddress")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<string>("ClientName")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<string>("ExtensionData")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int?>("ImpersonatorTenantId")
.HasColumnType("int");
b.Property<long?>("ImpersonatorUserId")
.HasColumnType("bigint");
b.Property<string>("Reason")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long?>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("TenantId", "CreationTime");
b.HasIndex("TenantId", "Reason");
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpEntityChangeSets");
});
modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<long>("EntityChangeId")
.HasColumnType("bigint");
b.Property<string>("NewValue")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("OriginalValue")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("PropertyName")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property<string>("PropertyTypeFullName")
.HasColumnType("varchar(192) CHARACTER SET utf8mb4")
.HasMaxLength(192);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("EntityChangeId");
b.ToTable("AbpEntityPropertyChanges");
});
modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<string>("Icon")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDisabled")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("TenantId", "Name");
b.ToTable("AbpLanguages");
});
modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("Key")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<string>("LanguageName")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Source")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(67108864);
b.HasKey("Id");
b.HasIndex("TenantId", "Source", "LanguageName", "Key");
b.ToTable("AbpLanguageTexts");
});
modelBuilder.Entity("Abp.Notifications.NotificationInfo", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("Data")
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(1048576);
b.Property<string>("DataTypeName")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("EntityId")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property<string>("EntityTypeAssemblyQualifiedName")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("EntityTypeName")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.Property<string>("ExcludedUserIds")
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(131072);
b.Property<string>("NotificationName")
.IsRequired()
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property<byte>("Severity")
.HasColumnType("tinyint unsigned");
b.Property<string>("TenantIds")
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(131072);
b.Property<string>("UserIds")
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(131072);
b.HasKey("Id");
b.ToTable("AbpNotifications");
});
modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("EntityId")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property<string>("EntityTypeAssemblyQualifiedName")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("EntityTypeName")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.Property<string>("NotificationName")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId");
b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId");
b.ToTable("AbpNotificationSubscriptions");
});
modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("Data")
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(1048576);
b.Property<string>("DataTypeName")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("EntityId")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property<string>("EntityTypeAssemblyQualifiedName")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property<string>("EntityTypeName")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.Property<string>("NotificationName")
.IsRequired()
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property<byte>("Severity")
.HasColumnType("tinyint unsigned");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("TenantId");
b.ToTable("AbpTenantNotifications");
});
modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<int>("State")
.HasColumnType("int");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<Guid>("TenantNotificationId")
.HasColumnType("char(36)");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.HasKey("Id");
b.HasIndex("UserId", "State", "CreationTime");
b.ToTable("AbpUserNotifications");
});
modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<string>("Code")
.IsRequired()
.HasColumnType("varchar(95) CHARACTER SET utf8mb4")
.HasMaxLength(95);
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<long?>("ParentId")
.HasColumnType("bigint");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ParentId");
b.HasIndex("TenantId", "Code");
b.ToTable("AbpOrganizationUnits");
});
modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<long>("OrganizationUnitId")
.HasColumnType("bigint");
b.Property<int>("RoleId")
.HasColumnType("int");
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("TenantId", "OrganizationUnitId");
b.HasIndex("TenantId", "RoleId");
b.ToTable("AbpOrganizationUnitRoles");
});
modelBuilder.Entity("AccountingSystems.Authorization.Roles.Role", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(5000);
b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<bool>("IsDefault")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsStatic")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
.HasMaxLength(32);
b.Property<string>("NormalizedName")
.IsRequired()
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
.HasMaxLength(32);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("CreatorUserId");
b.HasIndex("DeleterUserId");
b.HasIndex("LastModifierUserId");
b.HasIndex("TenantId", "NormalizedName");
b.ToTable("AbpRoles");
});
modelBuilder.Entity("AccountingSystems.Authorization.Users.User", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
b.Property<string>("AuthenticationSource")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("EmailAddress")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<string>("EmailConfirmationCode")
.HasColumnType("varchar(328) CHARACTER SET utf8mb4")
.HasMaxLength(328);
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsEmailConfirmed")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsLockoutEnabled")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsPhoneNumberConfirmed")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsTwoFactorEnabled")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("LockoutEndDateUtc")
.HasColumnType("datetime(6)");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<string>("NormalizedEmailAddress")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<string>("NormalizedUserName")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property<string>("Password")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<string>("PasswordResetCode")
.HasColumnType("varchar(328) CHARACTER SET utf8mb4")
.HasMaxLength(328);
b.Property<string>("PhoneNumber")
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
.HasMaxLength(32);
b.Property<string>("SecurityStamp")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<string>("Surname")
.IsRequired()
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property<int?>("TenantId")
.HasColumnType("int");
b.Property<string>("UserName")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("CreatorUserId");
b.HasIndex("DeleterUserId");
b.HasIndex("LastModifierUserId");
b.HasIndex("TenantId", "NormalizedEmailAddress");
b.HasIndex("TenantId", "NormalizedUserName");
b.ToTable("AbpUsers");
});
modelBuilder.Entity("AccountingSystems.BadStocks.BadStock", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<double>("Amount")
.HasColumnType("double");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<double>("TotalAmount")
.HasColumnType("double");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ProductId");
b.ToTable("AppBadStocks");
});
modelBuilder.Entity("AccountingSystems.BookingDetails.BookingDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("BookingHeaderId")
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("BookingHeaderId");
b.HasIndex("ProductId");
b.ToTable("AppBookingDetails");
});
modelBuilder.Entity("AccountingSystems.BookingHeaders.BookingHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("BookingId")
.HasColumnType("int");
b.Property<string>("BookingCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("BookingDate")
.HasColumnType("datetime(6)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<int>("CustomerId")
.HasColumnType("int");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("SalesmanId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<double>("Vatable")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.HasIndex("SalesmanId");
b.ToTable("AppBookingHeaders");
});
modelBuilder.Entity("AccountingSystems.CreditMemoDetails.CreditMemoDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<int>("CreditMemoHeaderId")
.HasColumnType("int");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("CreditMemoHeaderId");
b.HasIndex("ProductId");
b.ToTable("AppCreditMemoDetails");
});
modelBuilder.Entity("AccountingSystems.CreditMemoHeaders.CreditMemoHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("CreditMemoId")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreatorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("CreditMemoCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreditMemoDate")
.HasColumnType("datetime(6)");
b.Property<string>("CreditMemoMode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("CustomerId")
.HasColumnType("int");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsGood")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("SalesmanId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<double>("Vatable")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.HasIndex("SalesmanId");
b.ToTable("AppCreditMemoHeaders");
});
modelBuilder.Entity("AccountingSystems.Customers.Customer", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("Barangay")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("Code")
.HasColumnType("int");
b.Property<string>("ContactPerson")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreditLimit")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Disc1")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Disc2")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Disc3")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Disc4")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("HouseNumber")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<string>("KindofBranch")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Municipality")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Name")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("PrincipalCode1")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("PrincipalCode2")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Province")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("SalesmansId")
.HasColumnType("int");
b.Property<string>("Street")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Telephone")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<string>("Terms")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.HasIndex("SalesmansId");
b.ToTable("AppCustomers");
});
modelBuilder.Entity("AccountingSystems.DebitMemoDetails.DebitMemoDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<int>("DebitMemoHeaderId")
.HasColumnType("int");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("DebitMemoHeaderId");
b.HasIndex("ProductId");
b.ToTable("AppDebitMemoDetails");
});
modelBuilder.Entity("AccountingSystems.DebitMemoHeaders.DebitMemoHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("DebitMemoId")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreatorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("DebitMemoCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("DebitMemoDate")
.HasColumnType("datetime(6)");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("SupplierId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<double>("Vatable")
.HasColumnType("double");
b.Property<string>("Warehouse")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.HasIndex("SupplierId");
b.ToTable("AppDebitMemoHeaders");
});
modelBuilder.Entity("AccountingSystems.ExtruckSaleDetails.ExtruckSaleDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("ExtruckSaleHeaderId")
.HasColumnType("int");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("ExtruckSaleHeaderId");
b.HasIndex("ProductId");
b.ToTable("AppExtruckSaleDetails");
});
modelBuilder.Entity("AccountingSystems.ExtruckSaleHeaders.ExtruckSaleHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("ExtruckSaleId")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreatorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("CustomerId")
.HasColumnType("int");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("ExtruckSaleCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("ExtruckSaleDate")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("SalesmanId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<double>("Vatable")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.HasIndex("SalesmanId");
b.ToTable("AppExtruckSaleHeaders");
});
modelBuilder.Entity("AccountingSystems.InvoiceDetails.InvoiceDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<int>("InvoiceHeaderId")
.HasColumnType("int");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("InvoiceHeaderId");
b.HasIndex("ProductId");
b.ToTable("AppInvoiceDetails");
});
modelBuilder.Entity("AccountingSystems.InvoiceHeaders.InvoiceHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("InvoiceId")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreatorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("CustomerId")
.HasColumnType("int");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("EditorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("InvoiceCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("InvoiceDate")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("SalesmanId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<double>("Vatable")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.HasIndex("SalesmanId");
b.ToTable("AppInvoiceHeaders");
});
modelBuilder.Entity("AccountingSystems.MultiTenancy.Tenant", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("ConnectionString")
.HasColumnType("varchar(1024) CHARACTER SET utf8mb4")
.HasMaxLength(1024);
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<int?>("EditionId")
.HasColumnType("int");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property<string>("TenancyName")
.IsRequired()
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.HasKey("Id");
b.HasIndex("CreatorUserId");
b.HasIndex("DeleterUserId");
b.HasIndex("EditionId");
b.HasIndex("LastModifierUserId");
b.HasIndex("TenancyName");
b.ToTable("AbpTenants");
});
modelBuilder.Entity("AccountingSystems.Products.Product", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("BarcodeCase")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("BarcodeItem")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<string>("Brand")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("Cases")
.HasColumnType("int");
b.Property<string>("Code")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<double>("Discount")
.HasColumnType("double");
b.Property<double>("Freight")
.HasColumnType("double");
b.Property<double>("GrossPrice")
.HasColumnType("double");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<string>("ItemName")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<double>("PercentagePriceMargin")
.HasColumnType("double");
b.Property<int>("Pieces")
.HasColumnType("int");
b.Property<double>("PriceA")
.HasColumnType("double");
b.Property<double>("PriceB")
.HasColumnType("double");
b.Property<double>("PriceC")
.HasColumnType("double");
b.Property<double>("PriceD")
.HasColumnType("double");
b.Property<double>("PriceE")
.HasColumnType("double");
b.Property<double>("PriceF")
.HasColumnType("double");
b.Property<double>("PriceMargin")
.HasColumnType("double");
b.Property<double>("PricePerBox")
.HasColumnType("double");
b.Property<double>("PricePerPiece")
.HasColumnType("double");
b.Property<int>("SupplierId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<double>("Vat")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("SupplierId");
b.ToTable("AppProducts");
});
modelBuilder.Entity("AccountingSystems.PurchaseOrderDetails.PurchaseOrderDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("PurchaseOrderHeaderId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("ProductId");
b.HasIndex("PurchaseOrderHeaderId");
b.ToTable("AppPurchaseOrderDetails");
});
modelBuilder.Entity("AccountingSystems.PurchaseOrderHeaders.PurchaseOrderHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("PurchaseOrderId")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreatorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<DateTime>("PurchaseDate")
.HasColumnType("datetime(6)");
b.Property<string>("PurchaseOrderCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("SupplierId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<double>("Vatable")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("SupplierId");
b.ToTable("AppPurchaseOrderHeaders");
});
modelBuilder.Entity("AccountingSystems.RetailEnvironments.RetailEnvironment", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("Code")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CustomerType")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("RetailEnvironmentCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("SubRECode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("AppRetailEnvironment");
});
modelBuilder.Entity("AccountingSystems.Salesmans.Salesman", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("Address")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Code")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("District")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Telephone")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<string>("Town")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Type")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("AppSalesmans");
});
modelBuilder.Entity("AccountingSystems.Stocks.Stock", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<double>("Amount")
.HasColumnType("double");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<double>("TotalAmount")
.HasColumnType("double");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ProductId");
b.ToTable("AppStocks");
});
modelBuilder.Entity("AccountingSystems.Suppliers.Supplier", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("Address")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Code")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Telephone")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("TenantId")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("AppSuppliers");
});
modelBuilder.Entity("AccountingSystems.UnloadDetails.UnloadDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.Property<int>("UnloadHeaderId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ProductId");
b.HasIndex("UnloadHeaderId");
b.ToTable("AppUnloadDetails");
});
modelBuilder.Entity("AccountingSystems.UnloadHeaders.UnloadHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("UnloadId")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreatorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("SalesmanId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<string>("UnloadCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("UnloadDate")
.HasColumnType("datetime(6)");
b.Property<int>("VanId")
.HasColumnType("int");
b.Property<double>("Vatable")
.HasColumnType("double");
b.HasKey("Id");
b.HasIndex("SalesmanId");
b.HasIndex("VanId");
b.ToTable("AppUnloadHeaders");
});
modelBuilder.Entity("AccountingSystems.VanStocks.VanStock", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<double>("Amount")
.HasColumnType("double");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<double>("TotalAmount")
.HasColumnType("double");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<int>("VanId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ProductId");
b.HasIndex("VanId");
b.ToTable("AppVanStocks");
});
modelBuilder.Entity("AccountingSystems.Vans.Van", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("Code")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("District")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<string>("Name")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("PlateNumber")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("SalesmanId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("SalesmanId");
b.ToTable("AppVans");
});
modelBuilder.Entity("AccountingSystems.WithdrawalDetails.WithdrawalDetail", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("Box")
.HasColumnType("int");
b.Property<int>("Case")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<string>("Discount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("Gross")
.HasColumnType("double");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<double>("Net")
.HasColumnType("double");
b.Property<int>("Piece")
.HasColumnType("int");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalPieces")
.HasColumnType("int");
b.Property<double>("TotalProductPrice")
.HasColumnType("double");
b.Property<int>("WithdrawalHeaderId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ProductId");
b.HasIndex("WithdrawalHeaderId");
b.ToTable("AppWithdrawalDetails");
});
modelBuilder.Entity("AccountingSystems.WithdrawalHeaders.WithdrawalHeader", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("WithdrawalId")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("CreatorUserId")
.HasColumnType("bigint");
b.Property<string>("CreatorUsername")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<long?>("DeleterUserId")
.HasColumnType("bigint");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property<long?>("LastModifierUserId")
.HasColumnType("bigint");
b.Property<int>("SalesmanId")
.HasColumnType("int");
b.Property<int>("TenantId")
.HasColumnType("int");
b.Property<int>("TotalBox")
.HasColumnType("int");
b.Property<int>("TotalCase")
.HasColumnType("int");
b.Property<string>("TotalDiscount")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<double>("TotalGross")
.HasColumnType("double");
b.Property<double>("TotalNet")
.HasColumnType("double");
b.Property<int>("TotalPiece")
.HasColumnType("int");
b.Property<int>("TotalQuantity")
.HasColumnType("int");
b.Property<double>("TwelvePercentVat")
.HasColumnType("double");
b.Property<int>("VanId")
.HasColumnType("int");
b.Property<double>("Vatable")
.HasColumnType("double");
b.Property<string>("WithdrawalCode")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<DateTime>("WithdrawalDate")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("SalesmanId");
b.HasIndex("VanId");
b.ToTable("AppWithdrawalHeaders");
});
modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b =>
{
b.HasBaseType("Abp.Application.Features.FeatureSetting");
b.Property<int>("EditionId")
.HasColumnType("int");
b.HasIndex("EditionId", "Name");
b.ToTable("AbpFeatures");
b.HasDiscriminator().HasValue("EditionFeatureSetting");
});
modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b =>
{
b.HasBaseType("Abp.Application.Features.FeatureSetting");
b.HasIndex("TenantId", "Name");
b.ToTable("AbpFeatures");
b.HasDiscriminator().HasValue("TenantFeatureSetting");
});
modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b =>
{
b.HasBaseType("Abp.Authorization.PermissionSetting");
b.Property<int>("RoleId")
.HasColumnType("int");
b.HasIndex("RoleId");
b.ToTable("AbpPermissions");
b.HasDiscriminator().HasValue("RolePermissionSetting");
});
modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b =>
{
b.HasBaseType("Abp.Authorization.PermissionSetting");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.HasIndex("UserId");
b.ToTable("AbpPermissions");
b.HasDiscriminator().HasValue("UserPermissionSetting");
});
modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b =>
{
b.HasOne("AccountingSystems.Authorization.Roles.Role", null)
.WithMany("Claims")
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", null)
.WithMany("Claims")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", null)
.WithMany("Logins")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Authorization.Users.UserRole", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", null)
.WithMany("Roles")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Authorization.Users.UserToken", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", null)
.WithMany("Tokens")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Configuration.Setting", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", null)
.WithMany("Settings")
.HasForeignKey("UserId");
});
modelBuilder.Entity("Abp.EntityHistory.EntityChange", b =>
{
b.HasOne("Abp.EntityHistory.EntityChangeSet", null)
.WithMany("EntityChanges")
.HasForeignKey("EntityChangeSetId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b =>
{
b.HasOne("Abp.EntityHistory.EntityChange", null)
.WithMany("PropertyChanges")
.HasForeignKey("EntityChangeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b =>
{
b.HasOne("Abp.Organizations.OrganizationUnit", "Parent")
.WithMany("Children")
.HasForeignKey("ParentId");
});
modelBuilder.Entity("AccountingSystems.Authorization.Roles.Role", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", "CreatorUser")
.WithMany()
.HasForeignKey("CreatorUserId");
b.HasOne("AccountingSystems.Authorization.Users.User", "DeleterUser")
.WithMany()
.HasForeignKey("DeleterUserId");
b.HasOne("AccountingSystems.Authorization.Users.User", "LastModifierUser")
.WithMany()
.HasForeignKey("LastModifierUserId");
});
modelBuilder.Entity("AccountingSystems.Authorization.Users.User", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", "CreatorUser")
.WithMany()
.HasForeignKey("CreatorUserId");
b.HasOne("AccountingSystems.Authorization.Users.User", "DeleterUser")
.WithMany()
.HasForeignKey("DeleterUserId");
b.HasOne("AccountingSystems.Authorization.Users.User", "LastModifierUser")
.WithMany()
.HasForeignKey("LastModifierUserId");
});
modelBuilder.Entity("AccountingSystems.BadStocks.BadStock", b =>
{
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.BookingDetails.BookingDetail", b =>
{
b.HasOne("AccountingSystems.BookingHeaders.BookingHeader", "BookingHeader")
.WithMany("BookingDetails")
.HasForeignKey("BookingHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.BookingHeaders.BookingHeader", b =>
{
b.HasOne("AccountingSystems.Customers.Customer", "Customer")
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.CreditMemoDetails.CreditMemoDetail", b =>
{
b.HasOne("AccountingSystems.CreditMemoHeaders.CreditMemoHeader", "CreditMemoHeader")
.WithMany("CreditMemoDetails")
.HasForeignKey("CreditMemoHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.CreditMemoHeaders.CreditMemoHeader", b =>
{
b.HasOne("AccountingSystems.Customers.Customer", "Customer")
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.Customers.Customer", b =>
{
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmansId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.DebitMemoDetails.DebitMemoDetail", b =>
{
b.HasOne("AccountingSystems.DebitMemoHeaders.DebitMemoHeader", "DebitMemoHeader")
.WithMany("DebitMemoDetails")
.HasForeignKey("DebitMemoHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.DebitMemoHeaders.DebitMemoHeader", b =>
{
b.HasOne("AccountingSystems.Suppliers.Supplier", "Supplier")
.WithMany()
.HasForeignKey("SupplierId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.ExtruckSaleDetails.ExtruckSaleDetail", b =>
{
b.HasOne("AccountingSystems.ExtruckSaleHeaders.ExtruckSaleHeader", "ExtruckSaleHeader")
.WithMany("ExtruckSaleDetails")
.HasForeignKey("ExtruckSaleHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.ExtruckSaleHeaders.ExtruckSaleHeader", b =>
{
b.HasOne("AccountingSystems.Customers.Customer", "Customer")
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.InvoiceDetails.InvoiceDetail", b =>
{
b.HasOne("AccountingSystems.InvoiceHeaders.InvoiceHeader", "InvoiceHeader")
.WithMany("InvoiceDetails")
.HasForeignKey("InvoiceHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.InvoiceHeaders.InvoiceHeader", b =>
{
b.HasOne("AccountingSystems.Customers.Customer", "Customer")
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.MultiTenancy.Tenant", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", "CreatorUser")
.WithMany()
.HasForeignKey("CreatorUserId");
b.HasOne("AccountingSystems.Authorization.Users.User", "DeleterUser")
.WithMany()
.HasForeignKey("DeleterUserId");
b.HasOne("Abp.Application.Editions.Edition", "Edition")
.WithMany()
.HasForeignKey("EditionId");
b.HasOne("AccountingSystems.Authorization.Users.User", "LastModifierUser")
.WithMany()
.HasForeignKey("LastModifierUserId");
});
modelBuilder.Entity("AccountingSystems.Products.Product", b =>
{
b.HasOne("AccountingSystems.Suppliers.Supplier", "Suppliers")
.WithMany()
.HasForeignKey("SupplierId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.PurchaseOrderDetails.PurchaseOrderDetail", b =>
{
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.PurchaseOrderHeaders.PurchaseOrderHeader", "PurchaseOrderHeader")
.WithMany("PurchaseOrderDetails")
.HasForeignKey("PurchaseOrderHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.PurchaseOrderHeaders.PurchaseOrderHeader", b =>
{
b.HasOne("AccountingSystems.Suppliers.Supplier", "Supplier")
.WithMany()
.HasForeignKey("SupplierId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.Stocks.Stock", b =>
{
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.UnloadDetails.UnloadDetail", b =>
{
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.UnloadHeaders.UnloadHeader", "UnloadHeader")
.WithMany("UnloadDetails")
.HasForeignKey("UnloadHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.UnloadHeaders.UnloadHeader", b =>
{
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Vans.Van", "Van")
.WithMany()
.HasForeignKey("VanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.VanStocks.VanStock", b =>
{
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Vans.Van", "Van")
.WithMany()
.HasForeignKey("VanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.Vans.Van", b =>
{
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.WithdrawalDetails.WithdrawalDetail", b =>
{
b.HasOne("AccountingSystems.Products.Product", "Product")
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.WithdrawalHeaders.WithdrawalHeader", "WithdrawalHeader")
.WithMany("WithdrawalDetails")
.HasForeignKey("WithdrawalHeaderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("AccountingSystems.WithdrawalHeaders.WithdrawalHeader", b =>
{
b.HasOne("AccountingSystems.Salesmans.Salesman", "Salesman")
.WithMany()
.HasForeignKey("SalesmanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AccountingSystems.Vans.Van", "Van")
.WithMany()
.HasForeignKey("VanId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b =>
{
b.HasOne("Abp.Application.Editions.Edition", "Edition")
.WithMany()
.HasForeignKey("EditionId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b =>
{
b.HasOne("AccountingSystems.Authorization.Roles.Role", null)
.WithMany("Permissions")
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b =>
{
b.HasOne("AccountingSystems.Authorization.Users.User", null)
.WithMany("Permissions")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
#pragma warning restore 612, 618
}
}
}
| 36.655464 | 113 | 0.440433 | [
"MIT"
] | CorinthDev-Github/Invoice-and-Accounting-System | aspnet-core/src/AccountingSystems.EntityFrameworkCore/Migrations/20200415103255_CreatorUsername_toOtherTbls.Designer.cs | 134,161 | C# |
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
namespace ILRuntime.Runtime.Generated
{
unsafe class System_Collections_Generic_Dictionary_2_Int64_Int32_Binding
{
public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
{
BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
MethodBase method;
Type[] args;
Type type = typeof(System.Collections.Generic.Dictionary<System.Int64, System.Int32>);
args = new Type[]{typeof(System.Int64), typeof(System.Int32)};
method = type.GetMethod("set_Item", flag, null, args, null);
app.RegisterCLRMethodRedirection(method, set_Item_0);
args = new Type[]{typeof(System.Int64), typeof(System.Int32).MakeByRefType()};
method = type.GetMethod("TryGetValue", flag, null, args, null);
app.RegisterCLRMethodRedirection(method, TryGetValue_1);
args = new Type[]{};
method = type.GetConstructor(flag, null, args, null);
app.RegisterCLRMethodRedirection(method, Ctor_0);
}
static StackObject* set_Item_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
{
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
StackObject* ptr_of_this_method;
StackObject* __ret = ILIntepreter.Minus(__esp, 3);
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
System.Int32 value = ptr_of_this_method->Value;
ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
System.Int64 key = *(long*)&ptr_of_this_method->Value;
ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
System.Collections.Generic.Dictionary<System.Int64, System.Int32> instance_of_this_method;
instance_of_this_method = (System.Collections.Generic.Dictionary<System.Int64, System.Int32>)typeof(System.Collections.Generic.Dictionary<System.Int64, System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
__intp.Free(ptr_of_this_method);
instance_of_this_method[key] = value;
return __ret;
}
static StackObject* TryGetValue_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
{
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
StackObject* ptr_of_this_method;
StackObject* __ret = ILIntepreter.Minus(__esp, 3);
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
System.Int32 value = ptr_of_this_method->Value;
ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
System.Int64 key = *(long*)&ptr_of_this_method->Value;
ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
System.Collections.Generic.Dictionary<System.Int64, System.Int32> instance_of_this_method;
instance_of_this_method = (System.Collections.Generic.Dictionary<System.Int64, System.Int32>)typeof(System.Collections.Generic.Dictionary<System.Int64, System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
__intp.Free(ptr_of_this_method);
var result_of_this_method = instance_of_this_method.TryGetValue(key, out value);
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
switch(ptr_of_this_method->ObjectType)
{
case ObjectTypes.StackObjectReference:
{
var ___dst = *(StackObject**)&ptr_of_this_method->Value;
___dst->ObjectType = ObjectTypes.Integer;
___dst->Value = value;
}
break;
case ObjectTypes.FieldReference:
{
var ___obj = __mStack[ptr_of_this_method->Value];
if(___obj is ILTypeInstance)
{
((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = value;
}
else
{
var ___type = __domain.GetType(___obj.GetType()) as CLRType;
___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, value);
}
}
break;
case ObjectTypes.StaticFieldReference:
{
var ___type = __domain.GetType(ptr_of_this_method->Value);
if(___type is ILType)
{
((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = value;
}
else
{
((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, value);
}
}
break;
case ObjectTypes.ArrayReference:
{
var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.Int32[];
instance_of_arrayReference[ptr_of_this_method->ValueLow] = value;
}
break;
}
__ret->ObjectType = ObjectTypes.Integer;
__ret->Value = result_of_this_method ? 1 : 0;
return __ret + 1;
}
static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
{
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
StackObject* __ret = ILIntepreter.Minus(__esp, 0);
var result_of_this_method = new System.Collections.Generic.Dictionary<System.Int64, System.Int32>();
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
}
}
}
| 47.449275 | 255 | 0.610721 | [
"MIT"
] | Misaka-Mikoto-Tech/ILRuntime | ILRuntimeTest/AutoGenerate/System_Collections_Generic_Dictionary_2_Int64_Int32_Binding.cs | 6,548 | C# |
using System;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
using static Vanara.PInvoke.User32;
namespace Coffee
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private async Task CoffeeMachine()
{
int x = 1;
try
{
var input = new INPUT();
input.type = INPUTTYPE.INPUT_MOUSE;
input.mi.dwFlags = 0x01;
var size = Marshal.SizeOf(input);
while (true)
{
x = (x == 1) ? -1 : 1;
for (int i = 0; i < 100; ++i)
{
input.mi.dx = x;
input.mi.dy = x;
if (this.isActive)
{
var _ = SendInput(1, new INPUT[] { input }, size);
}
await Task.Delay(TimeSpan.FromSeconds(15));
}
}
}
catch
{}
}
private void InitCoffeeMachine()
{
this.isActive = true;
_ = CoffeeMachine();
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.coffeeIcon = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.activateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenu.SuspendLayout();
this.SuspendLayout();
//
// coffeeIcon
//
this.coffeeIcon.ContextMenuStrip = this.contextMenu;
this.coffeeIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("coffeeIcon.Icon")));
this.coffeeIcon.Text = "Coffee";
this.coffeeIcon.Visible = true;
//
// contextMenu
//
this.contextMenu.ImageScalingSize = new System.Drawing.Size(28, 28);
this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.activateToolStripMenuItem,
this.toolStripMenuItem,
this.exitToolStripMenuItem});
this.contextMenu.Name = "contextMenu";
this.contextMenu.Size = new System.Drawing.Size(271, 120);
//
// activateToolStripMenuItem
//
this.activateToolStripMenuItem.Name = "activateToolStripMenuItem";
this.activateToolStripMenuItem.Size = new System.Drawing.Size(270, 36);
this.activateToolStripMenuItem.Text = "Deactivate";
this.activateToolStripMenuItem.Click += new System.EventHandler(this.activateToolStripMenuItem_Click);
//
// toolStripMenuItem
//
this.toolStripMenuItem.Name = "toolStripMenuItem";
this.toolStripMenuItem.Size = new System.Drawing.Size(267, 6);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(270, 36);
this.exitToolStripMenuItem.Text = "Exit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(578, 354);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainForm";
this.Opacity = 0D;
this.ShowInTaskbar = false;
this.Text = "MainForm";
this.VisibleChanged += new System.EventHandler(this.MainForm_VisibleChanged);
this.contextMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
public string GetCurrentLabel()
{
return this.isActive ? "Deactivate" : "Activate";
}
private void activateToolStripMenuItem_Click(object sender, EventArgs e)
{
if (sender is ToolStripItem item)
{
isActive = !isActive;
item.Text = GetCurrentLabel();
}
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void MainForm_VisibleChanged(object sender, System.EventArgs e)
{
this.Visible = false;
}
#endregion
private NotifyIcon coffeeIcon;
private volatile bool isActive;
private ContextMenuStrip contextMenu;
private ToolStripMenuItem activateToolStripMenuItem;
private ToolStripSeparator toolStripMenuItem;
private ToolStripMenuItem exitToolStripMenuItem;
}
}
| 36.236994 | 140 | 0.557824 | [
"MIT"
] | sergiibratus/coffeemachine | Coffee/MainForm.Designer.cs | 6,271 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Resources {
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class TestResx {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal TestResx() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.TestResx", typeof(TestResx).GetTypeInfo().Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to No Name.
/// </summary>
internal static string _ {
get {
return ResourceManager.GetString("_", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Default.
/// </summary>
internal static string Default {
get {
return ResourceManager.GetString("Default", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DefaultGetOnlyProperty.
/// </summary>
internal static string Default_GetOnlyProperty {
get {
return ResourceManager.GetString("Default-GetOnlyProperty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DefaultGetSetProperty.
/// </summary>
internal static string Default_GetSetProperty {
get {
return ResourceManager.GetString("Default-GetSetProperty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DefaultNoSuchProperty.
/// </summary>
internal static string Default_NoSuchProperty {
get {
return ResourceManager.GetString("Default-NoSuchProperty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DefaultPrivateProperty.
/// </summary>
internal static string Default_PrivateProperty {
get {
return ResourceManager.GetString("Default-PrivateProperty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ObjectGetOnlyProperty.
/// </summary>
internal static string Object_GetOnlyProperty {
get {
return ResourceManager.GetString("Object.GetOnlyProperty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ObjectGetSetProperty.
/// </summary>
internal static string Object_GetSetProperty {
get {
return ResourceManager.GetString("Object.GetSetProperty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ObjectNoSuchProperty.
/// </summary>
internal static string Object_NoSuchProperty {
get {
return ResourceManager.GetString("Object.NoSuchProperty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ObjectPrivateProperty.
/// </summary>
internal static string Object_PrivateProperty {
get {
return ResourceManager.GetString("Object.PrivateProperty", resourceCulture);
}
}
}
}
| 38.116129 | 176 | 0.574306 | [
"MIT"
] | 2E0PGS/corefx | src/System.ComponentModel.TypeConverter/tests/Resources/TestResx.Designer.cs | 5,910 | C# |
using Sharpen;
namespace android.opengl
{
[Sharpen.NakedStub]
public class ETC1Util
{
[Sharpen.NakedStub]
public class ETC1Texture
{
}
}
}
| 10.857143 | 26 | 0.703947 | [
"Apache-2.0"
] | Conceptengineai/XobotOS | android/generated/android/opengl/ETC1Util.cs | 152 | C# |
using System;
using System.Threading.Tasks;
using commercetools.Sdk.Client;
using commercetools.Sdk.Domain;
using commercetools.Sdk.Domain.Stores;
using static commercetools.Sdk.IntegrationTests.GenericFixture;
namespace commercetools.Sdk.IntegrationTests.Stores
{
public static class StoresFixture
{
#region DraftBuilds
public static StoreDraft DefaultStoreDraft(StoreDraft storeDraft)
{
var randomInt = TestingUtility.RandomInt();
storeDraft.Key = $"Key{randomInt}";
storeDraft.Name = new LocalizedString() {{"en", $"Store_Name_{randomInt}"}};
return storeDraft;
}
public static StoreDraft DefaultStoreDraftWithKey(StoreDraft draft, string key)
{
var storeDraft = DefaultStoreDraft(draft);
storeDraft.Key = key;
return storeDraft;
}
#endregion
#region WithStore
public static async Task WithStore( IClient client, Action<Store> func)
{
await With(client, new StoreDraft(), DefaultStoreDraft, func);
}
public static async Task WithStore( IClient client, Func<StoreDraft, StoreDraft> draftAction, Action<Store> func)
{
await With(client, new StoreDraft(), draftAction, func);
}
public static async Task WithStore( IClient client, Func<Store, Task> func)
{
await WithAsync(client, new StoreDraft(), DefaultStoreDraft, func);
}
public static async Task WithStore( IClient client, Func<StoreDraft, StoreDraft> draftAction, Func<Store, Task> func)
{
await WithAsync(client, new StoreDraft(), draftAction, func);
}
#endregion
#region WithUpdateableStore
public static async Task WithUpdateableStore(IClient client, Func<Store, Store> func)
{
await WithUpdateable(client, new StoreDraft(), DefaultStoreDraft, func);
}
public static async Task WithUpdateableStore(IClient client, Func<StoreDraft, StoreDraft> draftAction, Func<Store, Store> func)
{
await WithUpdateable(client, new StoreDraft(), draftAction, func);
}
public static async Task WithUpdateableStore(IClient client, Func<Store, Task<Store>> func)
{
await WithUpdateableAsync(client, new StoreDraft(), DefaultStoreDraft, func);
}
public static async Task WithUpdateableStore(IClient client, Func<StoreDraft, StoreDraft> draftAction, Func<Store, Task<Store>> func)
{
await WithUpdateableAsync(client, new StoreDraft(), draftAction, func);
}
#endregion
}
}
| 36.486486 | 141 | 0.652963 | [
"Apache-2.0"
] | commercetools/commercetools-dotnet-core-sdk | commercetools.Sdk/IntegrationTests/commercetools.Sdk.IntegrationTests/Stores/StoresFixture.cs | 2,700 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the waf-2015-08-24.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.WAF.Model
{
/// <summary>
/// <note>
/// <para>
/// This is <b>AWS WAF Classic</b> documentation. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
/// WAF Classic</a> in the developer guide.
/// </para>
///
/// <para>
/// <b>For the latest version of AWS WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
/// WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints
/// for regional and global use.
/// </para>
/// </note>
/// <para>
/// In an <a>UpdateRegexPatternSet</a> request, <code>RegexPatternSetUpdate</code> specifies
/// whether to insert or delete a <code>RegexPatternString</code> and includes the settings
/// for the <code>RegexPatternString</code>.
/// </para>
/// </summary>
public partial class RegexPatternSetUpdate
{
private ChangeAction _action;
private string _regexPatternString;
/// <summary>
/// Gets and sets the property Action.
/// <para>
/// Specifies whether to insert or delete a <code>RegexPatternString</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ChangeAction Action
{
get { return this._action; }
set { this._action = value; }
}
// Check to see if Action property is set
internal bool IsSetAction()
{
return this._action != null;
}
/// <summary>
/// Gets and sets the property RegexPatternString.
/// <para>
/// Specifies the regular expression (regex) pattern that you want AWS WAF to search for,
/// such as <code>B[a@]dB[o0]t</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=512)]
public string RegexPatternString
{
get { return this._regexPatternString; }
set { this._regexPatternString = value; }
}
// Check to see if RegexPatternString property is set
internal bool IsSetRegexPatternString()
{
return this._regexPatternString != null;
}
}
} | 34.234043 | 172 | 0.626787 | [
"Apache-2.0"
] | NGL321/aws-sdk-net | sdk/src/Services/WAF/Generated/Model/RegexPatternSetUpdate.cs | 3,218 | C# |
namespace AspectInjector.SampleApps.NotifyPropertyChanged
{
public class AppViewModel
{
[Notify(NotifyAlso = nameof(Fullname))]
public string FirstName { get; set; }
[Notify(NotifyAlso = nameof(Fullname))]
public string LastName { get; set; }
public string Fullname => $"{FirstName} {LastName}";
}
} | 28.153846 | 61 | 0.620219 | [
"Apache-2.0"
] | venux/aspect-injector | samples/NotifyPropertyChanged/AppViewModel.cs | 368 | C# |
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MyCompany.MyProject.AppHost.HostedServices
{
public class DefaultTimedHostedService : HostedServiceBase
{
private readonly ILogger<DefaultTimedHostedService> _logger;
private Timer _timer;
public DefaultTimedHostedService(ILoggerFactory loggerFactory, IApplicationLifetime applicationLifetime)
: base(loggerFactory, applicationLifetime)
{
_logger = loggerFactory.CreateLogger<DefaultTimedHostedService>();
}
protected override void OnStarted()
{
_logger.LogInformation("Service is starting.");
_timer = new Timer((state) =>
{
_logger.LogInformation("Service is working.");
}, null, TimeSpan.Zero, TimeSpan.FromSeconds(1));
}
protected override void OnStopped()
{
_logger.LogInformation("Service is stopped");
}
protected override void OnStopping()
{
_logger.LogInformation("Service is stopping");
}
}
}
| 29.046512 | 112 | 0.657326 | [
"Apache-2.0"
] | tairan/aspnetboilerplate | templates/Abp.Template.Vuejs/Content/aspnet-core/src/MyCompany.MyProject.AppHost/HostedServices/DefaultTimedHostedService.cs | 1,251 | C# |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.MTurk")]
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon Mechanical Turk. Amazon MTurk is a web service that provides an on-demand, scalable, human workforce to complete jobs that humans can do better than computers, for example, recognizing objects in photos.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.5.0.67")] | 48.40625 | 290 | 0.752098 | [
"Apache-2.0"
] | motoko89/aws-sdk-net-xamarin | sdk/code-analysis/ServiceAnalysis/MTurk/Properties/AssemblyInfo.cs | 1,549 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureNative.Insights
{
public static class GetScheduledQueryRule
{
/// <summary>
/// The Log Search Rule resource.
/// API Version: 2018-04-16.
/// </summary>
public static Task<GetScheduledQueryRuleResult> InvokeAsync(GetScheduledQueryRuleArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<GetScheduledQueryRuleResult>("azure-native:insights:getScheduledQueryRule", args ?? new GetScheduledQueryRuleArgs(), options.WithVersion());
}
public sealed class GetScheduledQueryRuleArgs : Pulumi.InvokeArgs
{
/// <summary>
/// The name of the resource group.
/// </summary>
[Input("resourceGroupName", required: true)]
public string ResourceGroupName { get; set; } = null!;
/// <summary>
/// The name of the rule.
/// </summary>
[Input("ruleName", required: true)]
public string RuleName { get; set; } = null!;
public GetScheduledQueryRuleArgs()
{
}
}
[OutputType]
public sealed class GetScheduledQueryRuleResult
{
/// <summary>
/// Action needs to be taken on rule execution.
/// </summary>
public readonly Union<Outputs.AlertingActionResponse, Outputs.LogToMetricActionResponse> Action;
/// <summary>
/// The flag that indicates whether the alert should be automatically resolved or not. The default is false.
/// </summary>
public readonly bool? AutoMitigate;
/// <summary>
/// The api-version used when creating this alert rule
/// </summary>
public readonly string CreatedWithApiVersion;
/// <summary>
/// The description of the Log Search rule.
/// </summary>
public readonly string? Description;
/// <summary>
/// The display name of the alert rule
/// </summary>
public readonly string? DisplayName;
/// <summary>
/// The flag which indicates whether the Log Search rule is enabled. Value should be true or false
/// </summary>
public readonly string? Enabled;
/// <summary>
/// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
/// </summary>
public readonly string Etag;
/// <summary>
/// Azure resource Id
/// </summary>
public readonly string Id;
/// <summary>
/// True if alert rule is legacy Log Analytic rule
/// </summary>
public readonly bool IsLegacyLogAnalyticsRule;
/// <summary>
/// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
/// </summary>
public readonly string Kind;
/// <summary>
/// Last time the rule was updated in IS08601 format.
/// </summary>
public readonly string LastUpdatedTime;
/// <summary>
/// Resource location
/// </summary>
public readonly string Location;
/// <summary>
/// Azure resource name
/// </summary>
public readonly string Name;
/// <summary>
/// Provisioning state of the scheduled query rule
/// </summary>
public readonly string ProvisioningState;
/// <summary>
/// Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction
/// </summary>
public readonly Outputs.ScheduleResponse? Schedule;
/// <summary>
/// Data Source against which rule will Query Data
/// </summary>
public readonly Outputs.SourceResponse Source;
/// <summary>
/// Resource tags
/// </summary>
public readonly ImmutableDictionary<string, string>? Tags;
/// <summary>
/// Azure resource type
/// </summary>
public readonly string Type;
[OutputConstructor]
private GetScheduledQueryRuleResult(
Union<Outputs.AlertingActionResponse, Outputs.LogToMetricActionResponse> action,
bool? autoMitigate,
string createdWithApiVersion,
string? description,
string? displayName,
string? enabled,
string etag,
string id,
bool isLegacyLogAnalyticsRule,
string kind,
string lastUpdatedTime,
string location,
string name,
string provisioningState,
Outputs.ScheduleResponse? schedule,
Outputs.SourceResponse source,
ImmutableDictionary<string, string>? tags,
string type)
{
Action = action;
AutoMitigate = autoMitigate;
CreatedWithApiVersion = createdWithApiVersion;
Description = description;
DisplayName = displayName;
Enabled = enabled;
Etag = etag;
Id = id;
IsLegacyLogAnalyticsRule = isLegacyLogAnalyticsRule;
Kind = kind;
LastUpdatedTime = lastUpdatedTime;
Location = location;
Name = name;
ProvisioningState = provisioningState;
Schedule = schedule;
Source = source;
Tags = tags;
Type = type;
}
}
}
| 34.668539 | 402 | 0.600875 | [
"Apache-2.0"
] | polivbr/pulumi-azure-native | sdk/dotnet/Insights/GetScheduledQueryRule.cs | 6,171 | C# |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Security;
using System.Runtime.InteropServices;
namespace Microsoft.Win32.SafeHandles
{
[SecurityCritical]
internal sealed class SafeX509NameHandle : SafeHandle
{
private SafeX509NameHandle() :
base(IntPtr.Zero, ownsHandle: true)
{
}
protected override bool ReleaseHandle()
{
Interop.Crypto.X509NameDestroy(handle);
SetHandle(IntPtr.Zero);
return true;
}
public override bool IsInvalid
{
get { return handle == IntPtr.Zero; }
}
}
}
| 24.580645 | 101 | 0.628609 | [
"MIT"
] | 690486439/corefx | src/Common/src/Microsoft/Win32/SafeHandles/SafeX509NameHandle.Unix.cs | 762 | C# |
using System.Collections.Generic;
using Essensoft.AspNetCore.Payment.Alipay.Response;
namespace Essensoft.AspNetCore.Payment.Alipay.Request
{
/// <summary>
/// alipay.user.invite.offlinesummary.query
/// </summary>
public class AlipayUserInviteOfflinesummaryQueryRequest : IAlipayRequest<AlipayUserInviteOfflinesummaryQueryResponse>
{
/// <summary>
/// 线下拉新结算汇总数据查询
/// </summary>
public string BizContent { get; set; }
#region IAlipayRequest Members
private bool needEncrypt = false;
private string apiVersion = "1.0";
private string terminalType;
private string terminalInfo;
private string prodCode;
private string notifyUrl;
private string returnUrl;
private AlipayObject bizModel;
public void SetNeedEncrypt(bool needEncrypt)
{
this.needEncrypt = needEncrypt;
}
public bool GetNeedEncrypt()
{
return needEncrypt;
}
public void SetNotifyUrl(string notifyUrl)
{
this.notifyUrl = notifyUrl;
}
public string GetNotifyUrl()
{
return notifyUrl;
}
public void SetReturnUrl(string returnUrl)
{
this.returnUrl = returnUrl;
}
public string GetReturnUrl()
{
return returnUrl;
}
public void SetTerminalType(string terminalType)
{
this.terminalType = terminalType;
}
public string GetTerminalType()
{
return terminalType;
}
public void SetTerminalInfo(string terminalInfo)
{
this.terminalInfo = terminalInfo;
}
public string GetTerminalInfo()
{
return terminalInfo;
}
public void SetProdCode(string prodCode)
{
this.prodCode = prodCode;
}
public string GetProdCode()
{
return prodCode;
}
public string GetApiName()
{
return "alipay.user.invite.offlinesummary.query";
}
public void SetApiVersion(string apiVersion)
{
this.apiVersion = apiVersion;
}
public string GetApiVersion()
{
return apiVersion;
}
public IDictionary<string, string> GetParameters()
{
var parameters = new AlipayDictionary
{
{ "biz_content", BizContent }
};
return parameters;
}
public AlipayObject GetBizModel()
{
return bizModel;
}
public void SetBizModel(AlipayObject bizModel)
{
this.bizModel = bizModel;
}
#endregion
}
}
| 22.951613 | 121 | 0.552706 | [
"MIT"
] | Msy1989/payment | src/Essensoft.AspNetCore.Payment.Alipay/Request/AlipayUserInviteOfflinesummaryQueryRequest.cs | 2,872 | C# |
using SharpDX;
using SharpDX.Direct3D11;
#if DX11_1
using Device = SharpDX.Direct3D11.Device1;
using DeviceContext = SharpDX.Direct3D11.DeviceContext1;
#endif
#if NETFX_CORE
namespace HelixToolkit.UWP.Render
#else
namespace HelixToolkit.Wpf.SharpDX.Render
#endif
{
using Utilities;
using Shaders;
/// <summary>
///
/// </summary>
public class DeviceContextProxy : DisposeObject
{
private DeviceContext deviceContext;
/// <summary>
///
/// </summary>
public DeviceContext DeviceContext { get { return deviceContext; } }
/// <summary>
/// Gets or sets the last shader pass.
/// </summary>
/// <value>
/// The last shader pass.
/// </value>
public IShaderPass LastShaderPass { set; get; }
/// <summary>
/// Initializes a new instance of the <see cref="DeviceContextProxy"/> class.
/// </summary>
/// <param name="device">The device.</param>
public DeviceContextProxy(Device device)
{
deviceContext = Collect(new DeviceContext(device));
}
/// <summary>
/// Initializes a new instance of the <see cref="DeviceContextProxy"/> class.
/// </summary>
/// <param name="context">The context.</param>
public DeviceContextProxy(DeviceContext context)
{
this.deviceContext = context;
}
/// <summary>
///
/// </summary>
/// <param name="buffer"></param>
public void SetRenderTargets(IDX11RenderBufferProxy buffer)
{
buffer.SetDefaultRenderTargets(deviceContext);
}
/// <summary>
/// Clears the render targets.
/// </summary>
/// <param name="buffer">The buffer.</param>
/// <param name="color">The color.</param>
public void ClearRenderTargets(IDX11RenderBufferProxy buffer, Color4 color)
{
buffer.ClearRenderTarget(deviceContext, color);
}
/// <summary>
///
/// </summary>
public void ClearRenderTagetBindings()
{
deviceContext.OutputMerger.ResetTargets();
}
/// <summary>
///
/// </summary>
/// <param name="disposeManagedResources"></param>
protected override void OnDispose(bool disposeManagedResources)
{
ClearRenderTagetBindings();
base.OnDispose(disposeManagedResources);
}
/// <summary>
///
/// </summary>
/// <param name="proxy"></param>
public static implicit operator DeviceContext(DeviceContextProxy proxy)
{
return proxy.DeviceContext;
}
/// <summary>
/// Sets the state of the raster.
/// </summary>
/// <param name="rasterState">State of the raster.</param>
public void SetRasterState(RasterizerStateProxy rasterState)
{
DeviceContext.Rasterizer.State = rasterState;
}
/// <summary>
/// Sets the state of the depth stencil.
/// </summary>
/// <param name="depthStencilState">State of the depth stencil.</param>
public void SetDepthStencilState(DepthStencilStateProxy depthStencilState)
{
DeviceContext.OutputMerger.SetDepthStencilState(depthStencilState);
}
/// <summary>
/// Sets the state of the depth stencil.
/// </summary>
/// <param name="depthStencilState">State of the depth stencil.</param>
/// <param name="stencilRef">The stencil reference.</param>
public void SetDepthStencilState(DepthStencilStateProxy depthStencilState, int stencilRef)
{
DeviceContext.OutputMerger.SetDepthStencilState(depthStencilState, stencilRef);
}
/// <summary>
/// Sets the state of the blend.
/// </summary>
/// <param name="blendState">State of the blend.</param>
public void SetBlendState(BlendStateProxy blendState)
{
DeviceContext.OutputMerger.SetBlendState(blendState);
}
/// <summary>
/// Sets the state of the blend.
/// </summary>
/// <param name="blendState">State of the blend.</param>
/// <param name="blendFactor">The blend factor.</param>
/// <param name="sampleMask">The sample mask.</param>
public void SetBlendState(BlendStateProxy blendState, Color4? blendFactor = null, int sampleMask = -1)
{
DeviceContext.OutputMerger.SetBlendState(blendState, blendFactor, sampleMask);
}
/// <summary>
/// Sets the state of the blend.
/// </summary>
/// <param name="blendState">State of the blend.</param>
/// <param name="blendFactor">The blend factor.</param>
/// <param name="sampleMask">The sample mask.</param>
public void SetBlendState(BlendStateProxy blendState, Color4? blendFactor, uint sampleMask)
{
DeviceContext.OutputMerger.SetBlendState(blendState, blendFactor, sampleMask);
}
}
}
| 33.797386 | 110 | 0.585187 | [
"MIT"
] | crack521/helix-toolkit | Source/HelixToolkit.SharpDX.Shared/Render/DeviceContextProxy.cs | 5,171 | C# |