text:
MXAFILEWRITER_CLASS_NAME::MXAFILEWRITER_CLASS_NAME(const std::string &filename) :
  _filename(filename)
{

}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
MXAFILEWRITER_CLASS_NAME::~MXAFILEWRITER_CLASS_NAME()
{

}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
bool MXAFILEWRITER_CLASS_NAME::initWriter()
{
  _outStream.open(this->_filename.c_str(), std::ios::out | std::ios::binary);
  if ( _outStream.fail() ) {
    std::cout << logTime() << "Output File '" << this->_filename << "' could not be opened for writing. Please" <<
     " check the path is correct and permissions are set correctly on the parent folder." << std::endl;
     return false;
  }
  return true;
}

redpajama_set_name: RedPajamaGithub


text:
//App
#include "fileText.hpp"

// *****************************************************************************
// Class FileText
// *****************************************************************************

FileText::FileText()
{
}

FileText::~FileText()
{
}

Status_e FileText::getLanguages(wxLanguage* lgsrc, wxLanguage* lgto)const
{
	if(!_fileName.HasName())
		return STATUS_FILE_NO_NAME;

	wxFile file;
	if(!file.Open(_fileName.GetFullPath(), wxFile::read))
		return STATUS_FILE_OPEN_FAILED;

	Status_e valReturn = STATUS_SUCCESS;

	wxString lg;
	valReturn = readStringInFile(file, &lg);
	if(valReturn == STATUS_SUCCESS)
	{
		*lgsrc = (wxLanguage)wxLocale::FindLanguageInfo(lg)->Language;

		valReturn = readStringInFile(file, &lg);
		if(valReturn == STATUS_SUCCESS)
			*lgto = (wxLanguage)wxLocale::FindLanguageInfo(lg)->Language;
	}

	file.Close();
	return valReturn;
}

Status_e FileText::setLanguages(wxLanguage lgsrc, wxLanguage lgto)
{
	if(!_fileName.HasName())
		return STATUS_FILE_NO_NAME;

	Status_e valReturn = STATUS_SUCCESS;

	//On vérifie si la liste est vide
	valReturn = isEmpty();
	if(valReturn != STATUS_EMPTY)
		return valReturn;

	wxFile file;
	//On crées un nouveau fichier, en écrasant
	//au préalable l'ancien.
	if(!file.Create(_fileName.GetFullPath(), true))
		valReturn = STATUS_FILE_CREATE_FAILED;
	else
	{
		//Écriture du langage source.
		valReturn = writeStringInFile(file, wxLocale::GetLanguageName(lgsrc));
		//Si ok. Écriture de l'autre langage.
		if(valReturn == STATUS_SUCCESS)
			valReturn = writeStringInFile(file, wxLocale::GetLanguageName(lgto));
	}

	file.Close();
	return valReturn;
}

Status_e FileText::isOk()const
{
	if(!_fileName.HasName())
		return STATUS_FILE_NO_NAME;

	wxFile file;
	if(!file.Open(_fileName.GetFullPath(), wxFile::read))
		return STATUS_FILE_OPEN_FAILED;

	file.Close();

	return STATUS_OK;
}

Status_e FileText::isEmpty()const
{
	if(!_fileName.HasName())
		return STATUS_FILE_NO_NAME;

	if(!_fileName.FileExists())
		return STATUS_EMPTY;

	wxFile file;
	if(!file.Open(_fileName.GetFullPath(), wxFile::read))
		return STATUS_FILE_OPEN_FAILED;

	//Positionne le curseur Après les langages.
	Status_e valReturn = filePointerAfterHeader(file);
	if(valReturn == STATUS_SUCCESS)
	{
		if(file.Eof())
			valReturn = STATUS_EMPTY;
		else
			valReturn = STATUS_NO_EMPTY;
	}

	file.Close();
	return valReturn;
}

Status_e FileText::clear()
{
	if(!_fileName.HasName())
		return STATUS_FILE_NO_NAME;

	if(!wxRemoveFile(_fileName.GetFullPath()))
		return STATUS_FILE_NO_REMOVE;

	_fileName.Clear();

	return STATUS_SUCCESS;
}

wxFileName FileText::getFileName()const
{
	return _fileName;
}

void FileText::setFileName(wxFileName const& fileName)
{
	_fileName = fileName;
}

Status_e FileText::filePointerAfterHeader(wxFile& file)const
{
	uint8_t sizelg;

	//Lecture de la taille du premier langage.
	if(file.Read(&sizelg, sizeof sizelg) != sizeof sizelg)
		return STATUS_FILE_READ_ERROR;

	//Pointer sur la taille du deuxième langage.
	if(file.Seek(sizelg, wxFromCurrent) ==  wxInvalidOffset)
		return STATUS_FILE_READ_ERROR;

	//Lecture de la taille du deuxième langage.
	if(file.Read(&sizelg, sizeof sizelg) != sizeof sizelg)
		return STATUS_FILE_READ_ERROR;

	//Pointer sur la taille du premier texte ou la fin du fichier
	file.Seek(sizelg, wxFromCurrent);

	return STATUS_SUCCESS;
}

Status_e FileText::readStringInFile(wxFile& file, wxString* str)const
{
	uint8_t sizeStr;

	//Lecture de la taille du texte.
	if(file.Read(&sizeStr, sizeof sizeStr) != sizeof sizeStr)
		return STATUS_FILE_READ_ERROR;

	//Lecture du texte.
	wxMemoryBuffer buffer;
	if(file.Read(buffer.GetWriteBuf(sizeStr), sizeStr) != sizeStr)
		return STATUS_FILE_READ_ERROR;
	buffer.UngetWriteBuf(sizeStr);

	str->Clear();
	str->Append(wxString::FromUTF8Unchecked((const char *)buffer.GetData(), buffer.GetDataLen()));

	return STATUS_SUCCESS;
}

Status_e FileText::writeStringInFile(wxFile& file, wxString const& str)
{
	uint8_t sizeStr = strlen(str.fn_str());

	//Écriture de la taille du texte.
	if(file.Write(&sizeStr, sizeof sizeStr) != sizeof sizeStr)
		return STATUS_FILE_WRITE_ERROR;

	//Écriture du texte.
	if(!file.Write(str))
		return STATUS_FILE_WRITE_ERROR;

	return STATUS_SUCCESS;
}


text:
namespace System.Reflection
{
    internal sealed class SignatureGenericMethodParameterType : SignatureGenericParameterType
    {
        internal SignatureGenericMethodParameterType(int position)
            : base(position)
        {
        }

        public sealed override bool IsGenericTypeParameter => false;
        public sealed override bool IsGenericMethodParameter => true;

        public sealed override string Name => "!!" + GenericParameterPosition;
    }
}


text:
<!DOCTYPE html>

  <meta charset="utf-8" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />

  <title>python_pachyderm.mixin.admin — python-pachyderm  documentation</title>

  <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />

    <link rel="index" title="Index" href="../../../genindex.html" />
    <link rel="search" title="Search" href="../../../search.html" />

             python-pachyderm

  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>

Contents:

python_pachyderm

          python-pachyderm

 »

Module code »

python_pachyderm.mixin.admin

Source code for python_pachyderm.mixin.admin

from python_pachyderm.service import Service, admin_proto
from google.protobuf import empty_pb2

[docs]class AdminMixin:
    """A mixin for admin-related functionality."""

[docs]    def inspect_cluster(self) -> admin_proto.ClusterInfo:
        """Inspects a cluster.

        Returns
        -------
        admin_proto.ClusterInfo
            A protobuf object with info on the cluster.
        """
        return self._req(
            Service.ADMIN,
            "InspectCluster",
            req=empty_pb2.Empty(),
        )

        © Copyright 2021, Joe Doliner.

    Built with Sphinx using a

    theme

    provided by Read the Docs.


text:
"""Wordcount exercise
Google's Python class

The main() below is already defined and complete. It calls print_words()
and print_top() functions which you write.

1. For the --count flag, implement a print_words(filename) function that counts
how often each word appears in the text and prints:
word1 count1
word2 count2
...

Print the above list in order sorted by word (python will sort punctuation to
come before letters -- that's fine). Store all the words as lowercase,
so 'The' and 'the' count as the same word.

2. For the --topcount flag, implement a print_top(filename) which is similar
to print_words() but which prints just the top 20 most common words sorted
so the most common word is first, then the next most common, and so on.

Use str.split() (no arguments) to split on all whitespace.

Workflow: don't build the whole program at once. Get it to an intermediate
milestone and print your data structure and sys.exit(0).
When that's working, try for the next milestone.

Optional: define a helper function to avoid code duplication inside
print_words() and print_top().

"""

import sys

# +++your code here+++
# Define print_words(filename) and print_top(filename) functions.
# You could write a helper utility function that reads a file
# and builds and returns a word/count dict for it.
# Then print_words() and print_top() can just call the utility function.

# Full disclosure (on the shoulders of giants), I got a lot of help from:
# http://www.thegeekstuff.com/2014/06/python-sorted/
###
def count_words(filename):
  """
  Reads a file and returns a dictionary with each word in the file and how many times
  the word appears in the file
  """
  with open(filename) as f:
    words = f.read().lower().split()

  word_count = {}

  for word in words:
    if word not in word_count:
      word_count[word] = 1
    else:
      word_count[word] += 1

  return(word_count)

##

def print_words(filename):
  """
  Counts how often each word occurs in filename and prints the count in format
  word1 count1
  word2 count2
  ...

  word list is sorted alphabetically
  """
  x = count_words(filename)
  for key in sorted(x):		# sorted(dict) returns sorted list of keys
    print "%s %d" %(key, x[key])

  return
###

def print_top(filename):
  x = count_words(filename)
  items = sorted(x.items(), key=lambda(k, v): (v, k), reverse=True)

  for item in items[:20]:
    print item[0], item[1]

# This basic command line argument parsing code is provided and
# calls the print_words() and print_top() functions which you must define.
def main():
  if len(sys.argv) != 3:
    print 'usage: ./wordcount.py {--count | --topcount} file'
    sys.exit(1)

  option = sys.argv[1]
  filename = sys.argv[2]
  if option == '--count':
    print_words(filename)
  elif option == '--topcount':
    print_top(filename)
  else:
    print 'unknown option: ' + option
    sys.exit(1)

if __name__ == '__main__':
  main()


text:
Apache 2.0 License.

## Introduction

`strtod` is a floating point parsing implementation for Rust with very
high precision, far better than the built in Rust floating point parser.

The documentation can be found at http://pvginkel.github.io/strtod/strtod/.

## Remarks

The quality of the source is not really something to write home about.
The reason for this is that this implementation is a verbatim translation
from http://mxr.mozilla.org/mozilla-central/source/js/src/dtoa.c.
That being said, the quality of the parser itself is very high.

The performance of this implementation should be OK. However there is room
for improvement in the BigNum implementation that the parser uses, e.g.
by caching instances or calculations. The original implementation does
this, but this has been removed from this implementation.

## Bugs

Bugs should be reported through github at
[http://github.com/pvginkel/strtod/issues](http://github.com/pvginkel/strtod/issues).

## License

PdfiumViewer is licensed under the Apache 2.0 license. See the license details for how PDFium is licensed.


text:
"""
APIInvoker holds the transport and format used for a remote api call.
"""
struct APIInvoker{T<:AbstractTransport,F<:AbstractMsgFormat}
    transport::T
    format::F
end

"""
APIInvoker holds the transport and format used for a remote api call.
This method creates an APIInvoker over ZMQ transport using JSON message format.
(provided for backward compatibility)
"""
APIInvoker(addr::String, ctx::Context=Context()) = APIInvoker(ZMQTransport(addr, REQ, false, ctx), JSONMsgFormat())
APIInvoker(ip::IPv4, port::Int, ctx::Context=Context()) = APIInvoker(ZMQTransport(ip, port, REQ, false, ctx), JSONMsgFormat())

"""
Calls a remote api `cmd` with `args...` and `data...`.
The response is formatted as specified by the formatter specified in `conn`.
"""
function apicall(conn::APIInvoker{T,F}, cmd, args...; data...) where {T<:AbstractTransport, F<:AbstractMsgFormat}
    req = wireformat(conn.format, String(cmd), args...; data...)
    resp = sendrecv(conn.transport, req)
    juliaformat(conn.format, resp)
end


text:
package com.ping.adapter.commadapter;

import android.app.Application;
import android.test.ApplicationTestCase;

/**
 * Testing Fundamentals
 */
public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
        super(Application.class);
    }
}


text:
.. File generated by /opt/cloudscheduler/utilities/schema_doc - DO NOT EDIT
..
.. To modify the contents of this file:
..   1. edit the template file ".../cloudscheduler/docs/schema_doc/tables/ec2_instance_status_codes.yaml"
..   2. run the utility ".../cloudscheduler/utilities/schema_doc"
..

Database Table: ec2_instance_status_codes
=========================================

This translation table maps Amazon EC2 instance status codes to their equivalent
CSV2 status codes.

Keys:
^^^^^

* **ec2_state** (String(32)):

      Is the Amazon EC2 instance status code.

Columns:
^^^^^^^^

* **csv2_state** (String(32)):

      Is the equivalent CSV2 VM status code.


text:
package org.python.exceptions;

public class ArithmeticError extends org.python.exceptions.Exception {
    public ArithmeticError() {
        super();
    }

    public ArithmeticError(String msg) {
        super(msg);
    }

    public ArithmeticError(org.python.Object[] args, java.util.Map<java.lang.String, org.python.Object> kwargs) {
        super(args, kwargs);
    }
}


text:
class DhtProxyServer
{
    public:
        DhtProxyServer();
        ~DhtProxyServer();

        void run();

        void get(const Pistache::Rest::Request& request,
                       Pistache::Http::ResponseWriter response);
        void put(const Pistache::Rest::Request& request,
                       Pistache::Http::ResponseWriter response);

        std::shared_ptr<dht::DhtRunner> node;
        std::unique_ptr<Pistache::Http::Endpoint> restServer;
        Pistache::Rest::Router restRouter;
};


text:
using System;
using System.Collections.Generic;
using System.Linq;
using Hyak.Common;

namespace Microsoft.Azure.Search.Models
{
    /// <summary>
    /// Defines options to control Cross-Origin Resource Sharing (CORS) for an
    /// index.  (see https://msdn.microsoft.com/library/azure/dn798941.aspx
    /// for more information)
    /// </summary>
    public partial class CorsOptions
    {
        private IList<string> _allowedOrigins;

        /// <summary>
        /// Required. Gets the list of origins from which JavaScript code will
        /// be granted access to your index. Can contain a list of hosts of
        /// the form {protocol}://{fully-qualified-domain-name}[:{port#}], or
        /// a single '*' to allow all origins (not recommended).
        /// </summary>
        public IList<string> AllowedOrigins
        {
            get { return this._allowedOrigins; }
            set { this._allowedOrigins = value; }
        }

        private long _maxAgeInSeconds;

        /// <summary>
        /// Optional. Gets or sets the duration for which browsers should cache
        /// CORS preflight responses. Defaults to 5 mintues.
        /// </summary>
        public long MaxAgeInSeconds
        {
            get { return this._maxAgeInSeconds; }
            set { this._maxAgeInSeconds = value; }
        }

        /// <summary>
        /// Initializes a new instance of the CorsOptions class.
        /// </summary>
        public CorsOptions()
        {
            this.AllowedOrigins = new LazyList<string>();
            this.MaxAgeInSeconds = 300;
        }

        /// <summary>
        /// Initializes a new instance of the CorsOptions class with required
        /// arguments.
        /// </summary>
        public CorsOptions(IList<string> allowedOrigins)
            : this()
        {
            if (allowedOrigins == null)
            {
                throw new ArgumentNullException("allowedOrigins");
            }
            this.AllowedOrigins = allowedOrigins;
        }
    }
}


text:
var MonkeyPatcher = require('capsela-util').MonkeyPatcher;

var TestRun = require('../../lib/TestRun').TestRun;
var TestSuite = require('../../lib/TestSuite').TestSuite;
var Q = require('q');

var path = require('path');
var fixturesDir = __dirname + '/../fixtures';

exports['path manipulation'] = {

    setUp: MonkeyPatcher.setUp,
    tearDown: MonkeyPatcher.tearDown,

    'addPath with file': function(test) {
        test.expect(1);

        var tr = new TestRun();

        tr.addPath(fixturesDir + '/FileATest.js').then(
            function(files) {
                test.deepEqual(files, [ path.resolve(fixturesDir + '/FileATest.js') ]);
                test.done();
            }
        );
    },

    'addPath with coffee file': function(test) {
        test.expect(1);

        var tr = new TestRun();

        tr.addPath(fixturesDir + '/FileATest.coffee').then(
            function(files) {
                test.deepEqual(files, [ path.resolve(fixturesDir + '/FileATest.coffee') ]);
                test.done();
            }
        );
    },

    'addPath with directory': function(test) {
        test.expect(2);

        var suiteFiles = [];
        MonkeyPatcher.patch(TestSuite.prototype, 'init', function(p) {
            suiteFiles.push(p);
        });

        var tr = new TestRun();
        tr.addPath(fixturesDir + '/TestsDir1').then(
            function(files) {

                var expected = [
                    path.resolve(fixturesDir + '/TestsDir1/TestBTest.js'),
                    path.resolve(fixturesDir + '/TestsDir1/TestCTest.js'),
                    path.resolve(fixturesDir + '/TestsDir1/TestDTest.coffee'),
                    path.resolve(fixturesDir + '/TestsDir1/subdir/TestATest.js'),
                    path.resolve(fixturesDir + '/TestsDir1/subdir/TestETest.coffee')
                ];

                test.deepEqual(files, expected);
                test.deepEqual(suiteFiles, expected);
                test.done();
            }
        );
    }

};

exports['running and reporting'] = {

    'run': function(test) {

        var tr = new TestRun();
        tr.addPath(fixturesDir + '/TestsDir2').then(
            function() {
                return tr.run();
            }
        ).then(
            function(summary) {

                test.deepEqual(summary, {
                    passed: false,
                    aborted: false,
                    suites: {
                        failed: 3,
                        total: 4
                    },
                    tests: {
                        errored: 2,
                        failed: 2,
                        skipped: 3,
                        total: 10
                    },
                    assertions: {
                        failed: 4,
                        total: 8
                    }
                });

                test.deepEqual(tr.getSummary(), summary);

                test.done();
            }
        ).done();
    },

    'run with no tests': function(test) {

        var tr = new TestRun();
        tr.addPath(fixturesDir + '/TestsDirNotThere').then(
            function() {
                return tr.run();
            }
        ).then(
            function(summary) {

                test.deepEqual(summary, {
                    passed: true,
                    aborted: false,
                    suites: {
                        failed: 0,
                        total: 0
                    },
                    tests: {
                        errored: 0,
                        failed: 0,
                        skipped: 0,
                        total: 0
                    },
                    assertions: {
                        failed: 0,
                        total: 0
                    }
                });

                test.deepEqual(tr.getSummary(), summary);

                test.done();
            }
        ).done();
    }

};


text:
namespace DLaB.Xrm.Entities
{

	[System.Runtime.Serialization.DataContractAttribute()]
	[System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "9.0.0.9369")]
	public enum msdyn_paymentState
	{

		[System.Runtime.Serialization.EnumMemberAttribute()]
		Active = 0,

		[System.Runtime.Serialization.EnumMemberAttribute()]
		Inactive = 1,
	}

	/// <summary>
	/// Specify payment.
	/// </summary>
	[System.Runtime.Serialization.DataContractAttribute()]
	[Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("msdyn_payment")]
	[System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "9.0.0.9369")]
	public partial class msdyn_payment : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	{

		public static class Fields
		{
			public const string CreatedBy = "createdby";
			public const string CreatedOn = "createdon";
			public const string CreatedOnBehalfBy = "createdonbehalfby";
			public const string ExchangeRate = "exchangerate";
			public const string ImportSequenceNumber = "importsequencenumber";
			public const string ModifiedBy = "modifiedby";
			public const string ModifiedOn = "modifiedon";
			public const string ModifiedOnBehalfBy = "modifiedonbehalfby";
			public const string msdyn_Account = "msdyn_account";
			public const string msdyn_Amount = "msdyn_amount";
			public const string msdyn_amount_Base = "msdyn_amount_base";
			public const string msdyn_CheckNumber = "msdyn_checknumber";
			public const string msdyn_Date = "msdyn_date";
			public const string msdyn_name = "msdyn_name";
			public const string msdyn_paymentId = "msdyn_paymentid";
			public const string Id = "msdyn_paymentid";
			public const string msdyn_PaymentMethod = "msdyn_paymentmethod";
			public const string msdyn_PaymentType = "msdyn_paymenttype";
			public const string msdyn_UnappliedAmount = "msdyn_unappliedamount";
			public const string msdyn_unappliedamount_Base = "msdyn_unappliedamount_base";
			public const string msdyn_WorkOrder = "msdyn_workorder";
			public const string OverriddenCreatedOn = "overriddencreatedon";
			public const string OwnerId = "ownerid";
			public const string OwningBusinessUnit = "owningbusinessunit";
			public const string OwningTeam = "owningteam";
			public const string OwningUser = "owninguser";
			public const string StateCode = "statecode";
			public const string StatusCode = "statuscode";
			public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber";
			public const string TransactionCurrencyId = "transactioncurrencyid";
			public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode";
			public const string VersionNumber = "versionnumber";
			public const string business_unit_msdyn_payment = "business_unit_msdyn_payment";
			public const string lk_msdyn_payment_createdby = "lk_msdyn_payment_createdby";
			public const string lk_msdyn_payment_createdonbehalfby = "lk_msdyn_payment_createdonbehalfby";
			public const string lk_msdyn_payment_modifiedby = "lk_msdyn_payment_modifiedby";
			public const string lk_msdyn_payment_modifiedonbehalfby = "lk_msdyn_payment_modifiedonbehalfby";
			public const string msdyn_account_msdyn_payment_Account = "msdyn_account_msdyn_payment_Account";
			public const string msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod = "msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod";
			public const string msdyn_msdyn_workorder_msdyn_payment_WorkOrder = "msdyn_msdyn_workorder_msdyn_payment_WorkOrder";
			public const string team_msdyn_payment = "team_msdyn_payment";
			public const string TransactionCurrency_msdyn_payment = "TransactionCurrency_msdyn_payment";
			public const string user_msdyn_payment = "user_msdyn_payment";
		}

		/// <summary>
		/// Default Constructor.
		/// </summary>
		[System.Diagnostics.DebuggerNonUserCode()]
		public msdyn_payment() :
				base(EntityLogicalName)
		{
		}

		public const string EntityLogicalName = "msdyn_payment";

		public const string PrimaryIdAttribute = "msdyn_paymentid";

		public const string PrimaryNameAttribute = "msdyn_name";

		public const int EntityTypeCode = 10138;

		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

		public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging;

		[System.Diagnostics.DebuggerNonUserCode()]
		private void OnPropertyChanged(string propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
			}
		}

		[System.Diagnostics.DebuggerNonUserCode()]
		private void OnPropertyChanging(string propertyName)
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName));
			}
		}

		/// <summary>
		/// Unique identifier of the user who created the record.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")]
		public Microsoft.Xrm.Sdk.EntityReference CreatedBy
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("createdby");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("CreatedBy");
				this.SetAttributeValue("createdby", value);
				this.OnPropertyChanged("CreatedBy");
			}
		}

		/// <summary>
		/// Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics 365 options.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")]
		public System.Nullable<System.DateTime> CreatedOn
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.DateTime>>("createdon");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("CreatedOn");
				this.SetAttributeValue("createdon", value);
				this.OnPropertyChanged("CreatedOn");
			}
		}

		/// <summary>
		/// Shows who created the record on behalf of another user.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")]
		public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("createdonbehalfby");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("CreatedOnBehalfBy");
				this.SetAttributeValue("createdonbehalfby", value);
				this.OnPropertyChanged("CreatedOnBehalfBy");
			}
		}

		/// <summary>
		/// Shows the exchange rate for the currency associated with the entity with respect to the base currency.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")]
		public System.Nullable<decimal> ExchangeRate
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<decimal>>("exchangerate");
			}
		}

		/// <summary>
		/// Shows the sequence number of the import that created this record.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")]
		public System.Nullable<int> ImportSequenceNumber
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<int>>("importsequencenumber");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("ImportSequenceNumber");
				this.SetAttributeValue("importsequencenumber", value);
				this.OnPropertyChanged("ImportSequenceNumber");
			}
		}

		/// <summary>
		/// Unique identifier of the user who modified the record.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")]
		public Microsoft.Xrm.Sdk.EntityReference ModifiedBy
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("modifiedby");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("ModifiedBy");
				this.SetAttributeValue("modifiedby", value);
				this.OnPropertyChanged("ModifiedBy");
			}
		}

		/// <summary>
		/// Shows the date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics 365 options.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")]
		public System.Nullable<System.DateTime> ModifiedOn
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.DateTime>>("modifiedon");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("ModifiedOn");
				this.SetAttributeValue("modifiedon", value);
				this.OnPropertyChanged("ModifiedOn");
			}
		}

		/// <summary>
		/// Shows who last updated the record on behalf of another user.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")]
		public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("modifiedonbehalfby");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("ModifiedOnBehalfBy");
				this.SetAttributeValue("modifiedonbehalfby", value);
				this.OnPropertyChanged("ModifiedOnBehalfBy");
			}
		}

		/// <summary>
		/// Unique identifier for Account associated with Payment.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_account")]
		public Microsoft.Xrm.Sdk.EntityReference msdyn_Account
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("msdyn_account");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_Account");
				this.SetAttributeValue("msdyn_account", value);
				this.OnPropertyChanged("msdyn_Account");
			}
		}

		/// <summary>
		///
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_amount")]
		public Microsoft.Xrm.Sdk.Money msdyn_Amount
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.Money>("msdyn_amount");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_Amount");
				this.SetAttributeValue("msdyn_amount", value);
				this.OnPropertyChanged("msdyn_Amount");
			}
		}

		/// <summary>
		/// Shows the value of the amount in the base currency.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_amount_base")]
		public Microsoft.Xrm.Sdk.Money msdyn_amount_Base
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.Money>("msdyn_amount_base");
			}
		}

		/// <summary>
		///
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_checknumber")]
		public string msdyn_CheckNumber
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<string>("msdyn_checknumber");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_CheckNumber");
				this.SetAttributeValue("msdyn_checknumber", value);
				this.OnPropertyChanged("msdyn_CheckNumber");
			}
		}

		/// <summary>
		///
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_date")]
		public System.Nullable<System.DateTime> msdyn_Date
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.DateTime>>("msdyn_date");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_Date");
				this.SetAttributeValue("msdyn_date", value);
				this.OnPropertyChanged("msdyn_Date");
			}
		}

		/// <summary>
		/// Enter the name of the custom entity.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_name")]
		public string msdyn_name
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<string>("msdyn_name");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_name");
				this.SetAttributeValue("msdyn_name", value);
				this.OnPropertyChanged("msdyn_name");
			}
		}

		/// <summary>
		/// Shows the entity instances.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_paymentid")]
		public System.Nullable<System.Guid> msdyn_paymentId
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.Guid>>("msdyn_paymentid");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_paymentId");
				this.SetAttributeValue("msdyn_paymentid", value);
				if (value.HasValue)
				{
					base.Id = value.Value;
				}
				else
				{
					base.Id = System.Guid.Empty;
				}
				this.OnPropertyChanged("msdyn_paymentId");
			}
		}

		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_paymentid")]
		public override System.Guid Id
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return base.Id;
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.msdyn_paymentId = value;
			}
		}

		/// <summary>
		/// Unique identifier for Payment Method associated with Payment.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_paymentmethod")]
		public Microsoft.Xrm.Sdk.EntityReference msdyn_PaymentMethod
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("msdyn_paymentmethod");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_PaymentMethod");
				this.SetAttributeValue("msdyn_paymentmethod", value);
				this.OnPropertyChanged("msdyn_PaymentMethod");
			}
		}

		/// <summary>
		///
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_paymenttype")]
		public Microsoft.Xrm.Sdk.OptionSetValue msdyn_PaymentType
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.OptionSetValue>("msdyn_paymenttype");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_PaymentType");
				this.SetAttributeValue("msdyn_paymenttype", value);
				this.OnPropertyChanged("msdyn_PaymentType");
			}
		}

		/// <summary>
		///
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_unappliedamount")]
		public Microsoft.Xrm.Sdk.Money msdyn_UnappliedAmount
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.Money>("msdyn_unappliedamount");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_UnappliedAmount");
				this.SetAttributeValue("msdyn_unappliedamount", value);
				this.OnPropertyChanged("msdyn_UnappliedAmount");
			}
		}

		/// <summary>
		/// Shows the value of the unapplied amount in the base currency.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_unappliedamount_base")]
		public Microsoft.Xrm.Sdk.Money msdyn_unappliedamount_Base
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.Money>("msdyn_unappliedamount_base");
			}
		}

		/// <summary>
		/// Unique identifier for Work Order associated with Payment.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_workorder")]
		public Microsoft.Xrm.Sdk.EntityReference msdyn_WorkOrder
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("msdyn_workorder");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_WorkOrder");
				this.SetAttributeValue("msdyn_workorder", value);
				this.OnPropertyChanged("msdyn_WorkOrder");
			}
		}

		/// <summary>
		/// Shows the date and time that the record was migrated.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")]
		public System.Nullable<System.DateTime> OverriddenCreatedOn
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<System.DateTime>>("overriddencreatedon");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("OverriddenCreatedOn");
				this.SetAttributeValue("overriddencreatedon", value);
				this.OnPropertyChanged("OverriddenCreatedOn");
			}
		}

		/// <summary>
		/// Owner Id
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")]
		public Microsoft.Xrm.Sdk.EntityReference OwnerId
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("ownerid");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("OwnerId");
				this.SetAttributeValue("ownerid", value);
				this.OnPropertyChanged("OwnerId");
			}
		}

		/// <summary>
		/// Unique identifier for the business unit that owns the record
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")]
		public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("owningbusinessunit");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("OwningBusinessUnit");
				this.SetAttributeValue("owningbusinessunit", value);
				this.OnPropertyChanged("OwningBusinessUnit");
			}
		}

		/// <summary>
		/// Unique identifier for the team that owns the record.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")]
		public Microsoft.Xrm.Sdk.EntityReference OwningTeam
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("owningteam");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("OwningTeam");
				this.SetAttributeValue("owningteam", value);
				this.OnPropertyChanged("OwningTeam");
			}
		}

		/// <summary>
		/// Unique identifier for the user that owns the record.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")]
		public Microsoft.Xrm.Sdk.EntityReference OwningUser
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("owninguser");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("OwningUser");
				this.SetAttributeValue("owninguser", value);
				this.OnPropertyChanged("OwningUser");
			}
		}

		/// <summary>
		/// Status of the Payment
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")]
		public System.Nullable<DLaB.Xrm.Entities.msdyn_paymentState> StateCode
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue<Microsoft.Xrm.Sdk.OptionSetValue>("statecode");
				if ((optionSet != null))
				{
					return ((DLaB.Xrm.Entities.msdyn_paymentState)(System.Enum.ToObject(typeof(DLaB.Xrm.Entities.msdyn_paymentState), optionSet.Value)));
				}
				else
				{
					return null;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("StateCode");
				if ((value == null))
				{
					this.SetAttributeValue("statecode", null);
				}
				else
				{
					this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value))));
				}
				this.OnPropertyChanged("StateCode");
			}
		}

		/// <summary>
		/// Reason for the status of the Payment
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")]
		public Microsoft.Xrm.Sdk.OptionSetValue StatusCode
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.OptionSetValue>("statuscode");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("StatusCode");
				this.SetAttributeValue("statuscode", value);
				this.OnPropertyChanged("StatusCode");
			}
		}

		/// <summary>
		/// For internal use only.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")]
		public System.Nullable<int> TimeZoneRuleVersionNumber
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<int>>("timezoneruleversionnumber");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("TimeZoneRuleVersionNumber");
				this.SetAttributeValue("timezoneruleversionnumber", value);
				this.OnPropertyChanged("TimeZoneRuleVersionNumber");
			}
		}

		/// <summary>
		/// Unique identifier of the currency associated with the entity.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")]
		public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("transactioncurrencyid");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("TransactionCurrencyId");
				this.SetAttributeValue("transactioncurrencyid", value);
				this.OnPropertyChanged("TransactionCurrencyId");
			}
		}

		/// <summary>
		/// Shows the time zone code that was in use when the record was created.
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")]
		public System.Nullable<int> UTCConversionTimeZoneCode
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<int>>("utcconversiontimezonecode");
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("UTCConversionTimeZoneCode");
				this.SetAttributeValue("utcconversiontimezonecode", value);
				this.OnPropertyChanged("UTCConversionTimeZoneCode");
			}
		}

		/// <summary>
		/// Version Number
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")]
		public System.Nullable<long> VersionNumber
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetAttributeValue<System.Nullable<long>>("versionnumber");
			}
		}

		/// <summary>
		/// 1:N msdyn_msdyn_payment_msdyn_paymentdetail_Payment
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_msdyn_payment_msdyn_paymentdetail_Payment")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.msdyn_paymentdetail> msdyn_msdyn_payment_msdyn_paymentdetail_Payment
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.msdyn_paymentdetail>("msdyn_msdyn_payment_msdyn_paymentdetail_Payment", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_msdyn_payment_msdyn_paymentdetail_Payment");
				this.SetRelatedEntities<DLaB.Xrm.Entities.msdyn_paymentdetail>("msdyn_msdyn_payment_msdyn_paymentdetail_Payment", null, value);
				this.OnPropertyChanged("msdyn_msdyn_payment_msdyn_paymentdetail_Payment");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_ActivityPointers
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_ActivityPointers")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.ActivityPointer> msdyn_payment_ActivityPointers
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.ActivityPointer>("msdyn_payment_ActivityPointers", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_ActivityPointers");
				this.SetRelatedEntities<DLaB.Xrm.Entities.ActivityPointer>("msdyn_payment_ActivityPointers", null, value);
				this.OnPropertyChanged("msdyn_payment_ActivityPointers");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_Annotations
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_Annotations")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Annotation> msdyn_payment_Annotations
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Annotation>("msdyn_payment_Annotations", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_Annotations");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Annotation>("msdyn_payment_Annotations", null, value);
				this.OnPropertyChanged("msdyn_payment_Annotations");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_Appointments
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_Appointments")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Appointment> msdyn_payment_Appointments
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Appointment>("msdyn_payment_Appointments", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_Appointments");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Appointment>("msdyn_payment_Appointments", null, value);
				this.OnPropertyChanged("msdyn_payment_Appointments");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_AsyncOperations
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_AsyncOperations")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.AsyncOperation> msdyn_payment_AsyncOperations
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.AsyncOperation>("msdyn_payment_AsyncOperations", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_AsyncOperations");
				this.SetRelatedEntities<DLaB.Xrm.Entities.AsyncOperation>("msdyn_payment_AsyncOperations", null, value);
				this.OnPropertyChanged("msdyn_payment_AsyncOperations");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_BulkDeleteFailures
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_BulkDeleteFailures")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.BulkDeleteFailure> msdyn_payment_BulkDeleteFailures
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.BulkDeleteFailure>("msdyn_payment_BulkDeleteFailures", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_BulkDeleteFailures");
				this.SetRelatedEntities<DLaB.Xrm.Entities.BulkDeleteFailure>("msdyn_payment_BulkDeleteFailures", null, value);
				this.OnPropertyChanged("msdyn_payment_BulkDeleteFailures");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_connections1
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_connections1")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Connection> msdyn_payment_connections1
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Connection>("msdyn_payment_connections1", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_connections1");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Connection>("msdyn_payment_connections1", null, value);
				this.OnPropertyChanged("msdyn_payment_connections1");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_connections2
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_connections2")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Connection> msdyn_payment_connections2
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Connection>("msdyn_payment_connections2", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_connections2");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Connection>("msdyn_payment_connections2", null, value);
				this.OnPropertyChanged("msdyn_payment_connections2");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_DuplicateBaseRecord
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_DuplicateBaseRecord")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.DuplicateRecord> msdyn_payment_DuplicateBaseRecord
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.DuplicateRecord>("msdyn_payment_DuplicateBaseRecord", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_DuplicateBaseRecord");
				this.SetRelatedEntities<DLaB.Xrm.Entities.DuplicateRecord>("msdyn_payment_DuplicateBaseRecord", null, value);
				this.OnPropertyChanged("msdyn_payment_DuplicateBaseRecord");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_DuplicateMatchingRecord
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_DuplicateMatchingRecord")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.DuplicateRecord> msdyn_payment_DuplicateMatchingRecord
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.DuplicateRecord>("msdyn_payment_DuplicateMatchingRecord", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_DuplicateMatchingRecord");
				this.SetRelatedEntities<DLaB.Xrm.Entities.DuplicateRecord>("msdyn_payment_DuplicateMatchingRecord", null, value);
				this.OnPropertyChanged("msdyn_payment_DuplicateMatchingRecord");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_Emails
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_Emails")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Email> msdyn_payment_Emails
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Email>("msdyn_payment_Emails", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_Emails");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Email>("msdyn_payment_Emails", null, value);
				this.OnPropertyChanged("msdyn_payment_Emails");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_Faxes
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_Faxes")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Fax> msdyn_payment_Faxes
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Fax>("msdyn_payment_Faxes", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_Faxes");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Fax>("msdyn_payment_Faxes", null, value);
				this.OnPropertyChanged("msdyn_payment_Faxes");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_Letters
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_Letters")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Letter> msdyn_payment_Letters
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Letter>("msdyn_payment_Letters", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_Letters");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Letter>("msdyn_payment_Letters", null, value);
				this.OnPropertyChanged("msdyn_payment_Letters");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_MailboxTrackingFolders
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_MailboxTrackingFolders")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.MailboxTrackingFolder> msdyn_payment_MailboxTrackingFolders
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.MailboxTrackingFolder>("msdyn_payment_MailboxTrackingFolders", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_MailboxTrackingFolders");
				this.SetRelatedEntities<DLaB.Xrm.Entities.MailboxTrackingFolder>("msdyn_payment_MailboxTrackingFolders", null, value);
				this.OnPropertyChanged("msdyn_payment_MailboxTrackingFolders");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_msdyn_approvals
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_msdyn_approvals")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.msdyn_approval> msdyn_payment_msdyn_approvals
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.msdyn_approval>("msdyn_payment_msdyn_approvals", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_msdyn_approvals");
				this.SetRelatedEntities<DLaB.Xrm.Entities.msdyn_approval>("msdyn_payment_msdyn_approvals", null, value);
				this.OnPropertyChanged("msdyn_payment_msdyn_approvals");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_msdyn_bookingalerts
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_msdyn_bookingalerts")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.msdyn_bookingalert> msdyn_payment_msdyn_bookingalerts
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.msdyn_bookingalert>("msdyn_payment_msdyn_bookingalerts", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_msdyn_bookingalerts");
				this.SetRelatedEntities<DLaB.Xrm.Entities.msdyn_bookingalert>("msdyn_payment_msdyn_bookingalerts", null, value);
				this.OnPropertyChanged("msdyn_payment_msdyn_bookingalerts");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_PhoneCalls
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_PhoneCalls")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.PhoneCall> msdyn_payment_PhoneCalls
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.PhoneCall>("msdyn_payment_PhoneCalls", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_PhoneCalls");
				this.SetRelatedEntities<DLaB.Xrm.Entities.PhoneCall>("msdyn_payment_PhoneCalls", null, value);
				this.OnPropertyChanged("msdyn_payment_PhoneCalls");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_PrincipalObjectAttributeAccesses
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_PrincipalObjectAttributeAccesses")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.PrincipalObjectAttributeAccess> msdyn_payment_PrincipalObjectAttributeAccesses
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.PrincipalObjectAttributeAccess>("msdyn_payment_PrincipalObjectAttributeAccesses", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_PrincipalObjectAttributeAccesses");
				this.SetRelatedEntities<DLaB.Xrm.Entities.PrincipalObjectAttributeAccess>("msdyn_payment_PrincipalObjectAttributeAccesses", null, value);
				this.OnPropertyChanged("msdyn_payment_PrincipalObjectAttributeAccesses");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_ProcessSession
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_ProcessSession")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.ProcessSession> msdyn_payment_ProcessSession
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.ProcessSession>("msdyn_payment_ProcessSession", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_ProcessSession");
				this.SetRelatedEntities<DLaB.Xrm.Entities.ProcessSession>("msdyn_payment_ProcessSession", null, value);
				this.OnPropertyChanged("msdyn_payment_ProcessSession");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_RecurringAppointmentMasters
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_RecurringAppointmentMasters")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.RecurringAppointmentMaster> msdyn_payment_RecurringAppointmentMasters
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.RecurringAppointmentMaster>("msdyn_payment_RecurringAppointmentMasters", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_RecurringAppointmentMasters");
				this.SetRelatedEntities<DLaB.Xrm.Entities.RecurringAppointmentMaster>("msdyn_payment_RecurringAppointmentMasters", null, value);
				this.OnPropertyChanged("msdyn_payment_RecurringAppointmentMasters");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_ServiceAppointments
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_ServiceAppointments")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.ServiceAppointment> msdyn_payment_ServiceAppointments
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.ServiceAppointment>("msdyn_payment_ServiceAppointments", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_ServiceAppointments");
				this.SetRelatedEntities<DLaB.Xrm.Entities.ServiceAppointment>("msdyn_payment_ServiceAppointments", null, value);
				this.OnPropertyChanged("msdyn_payment_ServiceAppointments");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_SocialActivities
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_SocialActivities")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.SocialActivity> msdyn_payment_SocialActivities
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.SocialActivity>("msdyn_payment_SocialActivities", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_SocialActivities");
				this.SetRelatedEntities<DLaB.Xrm.Entities.SocialActivity>("msdyn_payment_SocialActivities", null, value);
				this.OnPropertyChanged("msdyn_payment_SocialActivities");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_SyncErrors
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_SyncErrors")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.SyncError> msdyn_payment_SyncErrors
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.SyncError>("msdyn_payment_SyncErrors", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_SyncErrors");
				this.SetRelatedEntities<DLaB.Xrm.Entities.SyncError>("msdyn_payment_SyncErrors", null, value);
				this.OnPropertyChanged("msdyn_payment_SyncErrors");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_Tasks
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_Tasks")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.Task> msdyn_payment_Tasks
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.Task>("msdyn_payment_Tasks", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_Tasks");
				this.SetRelatedEntities<DLaB.Xrm.Entities.Task>("msdyn_payment_Tasks", null, value);
				this.OnPropertyChanged("msdyn_payment_Tasks");
			}
		}

		/// <summary>
		/// 1:N msdyn_payment_UserEntityInstanceDatas
		/// </summary>
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_payment_UserEntityInstanceDatas")]
		public System.Collections.Generic.IEnumerable<DLaB.Xrm.Entities.UserEntityInstanceData> msdyn_payment_UserEntityInstanceDatas
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntities<DLaB.Xrm.Entities.UserEntityInstanceData>("msdyn_payment_UserEntityInstanceDatas", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_payment_UserEntityInstanceDatas");
				this.SetRelatedEntities<DLaB.Xrm.Entities.UserEntityInstanceData>("msdyn_payment_UserEntityInstanceDatas", null, value);
				this.OnPropertyChanged("msdyn_payment_UserEntityInstanceDatas");
			}
		}

		/// <summary>
		/// N:1 business_unit_msdyn_payment
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_msdyn_payment")]
		public DLaB.Xrm.Entities.BusinessUnit business_unit_msdyn_payment
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.BusinessUnit>("business_unit_msdyn_payment", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("business_unit_msdyn_payment");
				this.SetRelatedEntity<DLaB.Xrm.Entities.BusinessUnit>("business_unit_msdyn_payment", null, value);
				this.OnPropertyChanged("business_unit_msdyn_payment");
			}
		}

		/// <summary>
		/// N:1 lk_msdyn_payment_createdby
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_payment_createdby")]
		public DLaB.Xrm.Entities.SystemUser lk_msdyn_payment_createdby
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_createdby", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("lk_msdyn_payment_createdby");
				this.SetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_createdby", null, value);
				this.OnPropertyChanged("lk_msdyn_payment_createdby");
			}
		}

		/// <summary>
		/// N:1 lk_msdyn_payment_createdonbehalfby
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_payment_createdonbehalfby")]
		public DLaB.Xrm.Entities.SystemUser lk_msdyn_payment_createdonbehalfby
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_createdonbehalfby", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("lk_msdyn_payment_createdonbehalfby");
				this.SetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_createdonbehalfby", null, value);
				this.OnPropertyChanged("lk_msdyn_payment_createdonbehalfby");
			}
		}

		/// <summary>
		/// N:1 lk_msdyn_payment_modifiedby
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_payment_modifiedby")]
		public DLaB.Xrm.Entities.SystemUser lk_msdyn_payment_modifiedby
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_modifiedby", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("lk_msdyn_payment_modifiedby");
				this.SetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_modifiedby", null, value);
				this.OnPropertyChanged("lk_msdyn_payment_modifiedby");
			}
		}

		/// <summary>
		/// N:1 lk_msdyn_payment_modifiedonbehalfby
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_msdyn_payment_modifiedonbehalfby")]
		public DLaB.Xrm.Entities.SystemUser lk_msdyn_payment_modifiedonbehalfby
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_modifiedonbehalfby", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("lk_msdyn_payment_modifiedonbehalfby");
				this.SetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("lk_msdyn_payment_modifiedonbehalfby", null, value);
				this.OnPropertyChanged("lk_msdyn_payment_modifiedonbehalfby");
			}
		}

		/// <summary>
		/// N:1 msdyn_account_msdyn_payment_Account
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_account")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_account_msdyn_payment_Account")]
		public DLaB.Xrm.Entities.Account msdyn_account_msdyn_payment_Account
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.Account>("msdyn_account_msdyn_payment_Account", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_account_msdyn_payment_Account");
				this.SetRelatedEntity<DLaB.Xrm.Entities.Account>("msdyn_account_msdyn_payment_Account", null, value);
				this.OnPropertyChanged("msdyn_account_msdyn_payment_Account");
			}
		}

		/// <summary>
		/// N:1 msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_paymentmethod")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod")]
		public DLaB.Xrm.Entities.msdyn_paymentmethod msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.msdyn_paymentmethod>("msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod");
				this.SetRelatedEntity<DLaB.Xrm.Entities.msdyn_paymentmethod>("msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod", null, value);
				this.OnPropertyChanged("msdyn_msdyn_paymentmethod_msdyn_payment_PaymentMethod");
			}
		}

		/// <summary>
		/// N:1 msdyn_msdyn_workorder_msdyn_payment_WorkOrder
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_workorder")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_msdyn_workorder_msdyn_payment_WorkOrder")]
		public DLaB.Xrm.Entities.msdyn_workorder msdyn_msdyn_workorder_msdyn_payment_WorkOrder
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.msdyn_workorder>("msdyn_msdyn_workorder_msdyn_payment_WorkOrder", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("msdyn_msdyn_workorder_msdyn_payment_WorkOrder");
				this.SetRelatedEntity<DLaB.Xrm.Entities.msdyn_workorder>("msdyn_msdyn_workorder_msdyn_payment_WorkOrder", null, value);
				this.OnPropertyChanged("msdyn_msdyn_workorder_msdyn_payment_WorkOrder");
			}
		}

		/// <summary>
		/// N:1 team_msdyn_payment
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_msdyn_payment")]
		public DLaB.Xrm.Entities.Team team_msdyn_payment
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.Team>("team_msdyn_payment", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("team_msdyn_payment");
				this.SetRelatedEntity<DLaB.Xrm.Entities.Team>("team_msdyn_payment", null, value);
				this.OnPropertyChanged("team_msdyn_payment");
			}
		}

		/// <summary>
		/// N:1 TransactionCurrency_msdyn_payment
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_msdyn_payment")]
		public DLaB.Xrm.Entities.TransactionCurrency TransactionCurrency_msdyn_payment
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.TransactionCurrency>("TransactionCurrency_msdyn_payment", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("TransactionCurrency_msdyn_payment");
				this.SetRelatedEntity<DLaB.Xrm.Entities.TransactionCurrency>("TransactionCurrency_msdyn_payment", null, value);
				this.OnPropertyChanged("TransactionCurrency_msdyn_payment");
			}
		}

		/// <summary>
		/// N:1 user_msdyn_payment
		/// </summary>
		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")]
		[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_msdyn_payment")]
		public DLaB.Xrm.Entities.SystemUser user_msdyn_payment
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return this.GetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("user_msdyn_payment", null);
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				this.OnPropertyChanging("user_msdyn_payment");
				this.SetRelatedEntity<DLaB.Xrm.Entities.SystemUser>("user_msdyn_payment", null, value);
				this.OnPropertyChanged("user_msdyn_payment");
			}
		}

		/// <summary>
		/// Constructor for populating via LINQ queries given a LINQ anonymous type
		/// <param name="anonymousType">LINQ anonymous type.</param>
		/// </summary>
		[System.Diagnostics.DebuggerNonUserCode()]
		public msdyn_payment(object anonymousType) :
				this()
		{
            foreach (var p in anonymousType.GetType().GetProperties())
            {
                var value = p.GetValue(anonymousType, null);
                var name = p.Name.ToLower();

                if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum))
                {
                    value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value);
                    name = name.Remove(name.Length - "enum".Length);
                }

                switch (name)
                {
                    case "id":
                        base.Id = (System.Guid)value;
                        Attributes["msdyn_paymentid"] = base.Id;
                        break;
                    case "msdyn_paymentid":
                        var id = (System.Nullable<System.Guid>) value;
                        if(id == null){ continue; }
                        base.Id = id.Value;
                        Attributes[name] = base.Id;
                        break;
                    case "formattedvalues":
                        // Add Support for FormattedValues
                        FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value);
                        break;
                    default:
                        Attributes[name] = value;
                        break;
                }
            }
		}

		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("msdyn_paymenttype")]
		public virtual msdyn_PaymentType? msdyn_PaymentTypeEnum
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return ((msdyn_PaymentType?)(EntityOptionSetEnum.GetEnum(this, "msdyn_paymenttype")));
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				msdyn_PaymentType = value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null;
			}
		}

		[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")]
		public virtual msdyn_payment_StatusCode? StatusCodeEnum
		{
			[System.Diagnostics.DebuggerNonUserCode()]
			get
			{
				return ((msdyn_payment_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode")));
			}
			[System.Diagnostics.DebuggerNonUserCode()]
			set
			{
				StatusCode = value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null;
			}
		}
	}
}