69 lines
1.2 KiB
C#
69 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Amazon.DynamoDBv2.Model;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
namespace ServerBase;
|
|
|
|
/*
|
|
public static partial class MetaHelper
|
|
{
|
|
public abstract class MetaHelperBase
|
|
{
|
|
private bool m_is_initialized = false;
|
|
|
|
public MetaHelperBase()
|
|
{
|
|
|
|
}
|
|
|
|
public bool init()
|
|
{
|
|
if (m_is_initialized == true)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
m_is_initialized = true;
|
|
|
|
return onInit();
|
|
}
|
|
|
|
protected abstract bool onInit();
|
|
|
|
public bool isInitialized()
|
|
{
|
|
return m_is_initialized;
|
|
}
|
|
|
|
public string? getMetaHelperName()
|
|
{
|
|
return GetType().FullName;
|
|
}
|
|
}
|
|
|
|
|
|
public abstract class MetaHelperBase<T>
|
|
: MetaHelperBase where T : class, IMetaData
|
|
{
|
|
public MetaHelperBase()
|
|
: base()
|
|
{
|
|
}
|
|
|
|
//protected T MetaDatas
|
|
//{
|
|
// get { return TableData.It.getMetaDatas<T>(); }
|
|
//}
|
|
|
|
}//IHelper<T>
|
|
}
|
|
*/ |