초기커밋
This commit is contained in:
69
ServerBase/Meta/IMetaHelper.cs
Normal file
69
ServerBase/Meta/IMetaHelper.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
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>
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user