<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using System.Reflection;
using System.Linq.Expressions;

namespace Signum.Entities.Basics
{
    [Serializable]
    public class FacadeMethodDN : IdentifiableEntity
    {
        private FacadeMethodDN() { }

        public FacadeMethodDN(MethodInfo mi)
        {
            InterfaceName = mi.DeclaringType.Name;
            MethodName = mi.Name;
        }

        [NotNullable, SqlDbType(Size = 100)]
        string interfaceName;
        [StringLengthValidator(AllowNulls = false, Min = 3, Max = 100), AvoidLocalization]
        public string InterfaceName
        {
            get { return interfaceName; }
            set { Set(ref interfaceName, value, () => InterfaceName); }
        }<commit_msg>fix FacadeMethod for overloaded method names<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using System.Reflection;
using System.Linq.Expressions;
using System.ServiceModel;

namespace Signum.Entities.Basics
{
    [Serializable]
    public class FacadeMethodDN : IdentifiableEntity
    {
        private FacadeMethodDN() { }

        public FacadeMethodDN(MethodInfo mi)
        {
            InterfaceName = mi.DeclaringType.Name;
            var oca = mi.SingleAttribute<OperationContractAttribute>();
            MethodName = oca.Name ?? mi.Name;
        }

        [NotNullable, SqlDbType(Size = 100)]
        string interfaceName;
        [StringLengthValidator(AllowNulls = false, Min = 3, Max = 100), AvoidLocalization]
        public string InterfaceName
        {
            get { return interfaceName; }
            set { Set(ref interfaceName, value, () => InterfaceName); }
        }
{'fraction_non_alphanumeric': 0.08859357696567, 'fraction_numerical': 0.007751937984496124, 'mean_word_length': 2.7104722792607805, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1557001', 'n_tokens_mistral': 502, 'n_tokens_neox': 484, 'n_words': 117}