示例#1
0
            internal static @MemberType.FullName @GetMethodName(@PrimaryKeyType key)
            {
                @Type.FullName value = @PrimaryKeyCacheName[key];
                if (!value.@IsSqlLogProxyLoadedName)
                {
                    sqlStream.WaitMember(@MemberIndex);
                }
                return /*NOTE*/ ((@MemberType.FullName) /*NOTE*/ value.@LogProxyMemberName /**/.@MemberName);
            }

            #endregion NOT Identity
            #endregion PUSH Member
            #endregion LOOP LogMembers

            #region LOOP RemoteMembers
            #region PUSH Member
            #region IF Identity
            /// <summary>
            /// @XmlDocument
            /// </summary>
            #region PUSH Identity
            /// <param name="@MemberName">@XmlDocument</param>
            #endregion PUSH Identity
            /// <returns>@XmlDocument</returns>
            #region NOT Attribute.IsCancel
            #region IF AttributeIsMethod
            [AutoCSer.Sql.RemoteMethod(MemberName = @"@MemberName" /*NOT:Attribute.IsAwait*/, IsAwait = false /*NOT:Attribute.IsAwait*/)]
示例#2
0
 /// <summary>
 /// 清除字段数据
 /// </summary>
 /// <param name="value">目标对象</param>
 public static void ClearFields(@Type.FullName value)
 {
     if (value != null)
     {
         #region LOOP Members
         value.@MemberName = default(@MemberType.FullName);
         #endregion LOOP Members
     }
 }
示例#3
0
 internal /*NOTE*/ new /*NOTE*/ static @MemberType.FullName @GetMethodName(/*PUSH:RemoteLinkType.RemoteKeyMember*/ @MemberType.FullName @MemberName /*PUSH:RemoteLinkType.RemoteKeyMember*/)
 {
     @Type.FullName value = /*PUSH:RemoteLinkType*/ @GetRemoteMethodName(/*PUSH:RemoteKeyMember*/ @MemberName /*PUSH:RemoteKeyMember*/);/*PUSH:RemoteLinkType*/
     if (!value.@IsSqlLogProxyLoadedName)
     {
         sqlStream.WaitMember(@MemberIndex);
     }
     return /*NOTE*/ ((@MemberType.FullName) /*NOTE*/ value.@LogProxyMemberName /**/.@MemberName);
 }
            private static @MemberType.FullName @GetCacheMemberName(@Type.FullName value /*LOOP:PropertyParameters*/, @ParameterTypeRefName @ParameterName /*LOOP:PropertyParameters*/)
            {
                #region LOOP Members
                #region PUSH Member
                @MemberType.FullName @IndexName = /*NOTE*/ (@MemberType.FullName) /*NOTE*/ @ParentIndexName /**/.@MemberName;
                #endregion PUSH Member
                #region IF IsNull
                if (@IndexName != null)
                {
                    #endregion IF IsNull
                    #endregion LOOP Members
                    return /*NOTE*/ ((@MemberType.FullName) /*NOTE*/ @IndexName /*NOT:PropertyParameters.Length*/.@MemberName /*NOT:PropertyParameters.Length*//*IF:PropertyParameters.Length*/[/*LOOP:PropertyParameters*/ @ParameterJoinName /*LOOP:PropertyParameters*/] /*IF:PropertyParameters.Length*/);

                    #region LOOP Members
                    #region IF IsNull
                }
示例#5
0
            private static @MemberType.FullName @GetCacheMemberName(int /*PUSH:Identity*/ @MemberName /*PUSH:Identity*//*LOOP:PropertyParameters*/, @ParameterTypeRefName @ParameterName /*LOOP:PropertyParameters*/)
            {
                @Type.FullName value = @IdentityArrayCacheName[/*PUSH:Identity*/ @MemberName /*PUSH:Identity*/];
                #region NAME CACHEMEMBER
                #region LOOP Members
                #region PUSH Member
                @MemberType.FullName @IndexName = /*NOTE*/ (@MemberType.FullName) /*NOTE*/ @ParentIndexName /**/.@MemberName;
                #endregion PUSH Member
                #region IF IsNull
                if (@IndexName != null)
                {
                    #endregion IF IsNull
                    #endregion LOOP Members
                    return /*NOTE*/ ((@MemberType.FullName) /*NOTE*/ @IndexName /*NOT:PropertyParameters.Length*/.@MemberName /*NOT:PropertyParameters.Length*//*IF:PropertyParameters.Length*/[/*LOOP:PropertyParameters*/ @ParameterJoinName /*LOOP:PropertyParameters*/] /*IF:PropertyParameters.Length*/);

                    #region LOOP Members
                    #region IF IsNull
                }
示例#6
0
            internal static @MemberType.FullName @GetMethodName(int /*PUSH:Identity*/ @MemberName /*PUSH:Identity*/)
            {
                @Type.FullName value = @IdentityArrayCacheName[/*PUSH:Identity*/ @MemberName /*PUSH:Identity*/];
                if (!value.@IsSqlLogProxyLoadedName)
                {
                    sqlStream.WaitMember(@MemberIndex);
                }
                return /*NOTE*/ ((@MemberType.FullName) /*NOTE*/ value.@LogProxyMemberName /**/.@MemberName);
            }

            #endregion IF Identity
            #region NOT Identity
            /// <summary>
            /// @XmlDocument
            /// </summary>
            /// <param name="key">关键字</param>
            /// <returns></returns>
            #region IF Attribute.IsRemoteMethod
            [AutoCSer.Sql.RemoteMethod(MemberName = @"@MemberName" /*NOT:Attribute.IsAwait*/, IsAwait = false /*NOT:Attribute.IsAwait*/)]
 /// <summary>
 /// @ServerRegisterName TCP调用服务端
 /// </summary>
 /// <param name="attribute">TCP调用服务器端配置信息</param>
 #region IF Type.Type.IsPublic
 /// <param name="value">TCP服务目标对象</param>
 #endregion IF Type.Type.IsPublic
 /// <param name="log">日志接口</param>
 public TcpOpenSimpleServer(AutoCSer.Net.TcpOpenSimpleServer.ServerAttribute attribute = null, Func <System.Net.Sockets.Socket, bool> verify = null /*IF:Type.Type.IsPublic*/, @Type.FullName value = null /*IF:Type.Type.IsPublic*/, AutoCSer.Log.ILog log = null)
     : base(attribute ?? (attribute = AutoCSer.Net.TcpOpenSimpleServer.ServerAttribute.GetConfig("@ServerRegisterName", typeof(@Type.FullName))), verify, log, @IsCallQueue)
 {
     Value = /*IF:Type.Type.IsPublic*/ value ?? /*IF:Type.Type.IsPublic*/ new @Type.FullName();
     setCommandData(@MethodIndexs.Length);
     #region LOOP MethodIndexs
     #region NOT IsNullMethod
     #region IF IsVerifyMethod
     setVerifyCommand(@MethodIndex);
     #endregion IF IsVerifyMethod
     #region NOT IsVerifyMethod
     setCommand(@MethodIndex);
     #endregion NOT IsVerifyMethod
     #endregion NOT IsNullMethod
     #endregion LOOP MethodIndexs
     #region IF IsSetTcpServer
     Value.SetTcpServer(this);
     #endregion IF IsSetTcpServer
     if (attribute.IsAutoServer)
     {
         Start();
     }
 }
 private static @MemberType.FullName @GetMemberName(@Type.FullName value)
 {
     return /*NOTE*/ ((@MemberType.FullName) /*NOTE*/ value.@MemberName);
 }
 private static @MethodReturnType.FullName @RemoteMethodName(@Type.FullName value /*LOOP:Parameters*/, @ParameterTypeRefName @ParameterName /*LOOP:Parameters*/)
 {
     /*IF:IsMethodReturn*/
     return /*IF:IsMethodReturn*//*NOTE*/ ((@MethodReturnType.FullName) /*NOTE*/ value.@MethodName(/*LOOP:Parameters*/ @ParameterJoinName /*LOOP:Parameters*/));
 }