📄 imodel.cs
字号:
namespace PowerEasy.IDal.CommonModel
{
using PowerEasy.Enumerations;
using PowerEasy.Model.CommonModel;
using PowerEasy.Model.Contents;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
public interface IModel
{
bool Add(ModelInfo modelInfo);
bool AddFieldToTable(FieldInfo fieldInfo, string tableName);
bool AddModelForNodes(int nodeId, int modelId, string templateId);
bool AddNodesModelTemplateRelationShip(NodesModelTemplateRelationShipInfo info);
bool AddTemplateForNodes(int nodeId, int templateId, bool isDefault);
bool Delete(int modelId);
bool DeleteNodeModel(int nodeId);
bool DeleteNodesModelTemplateRelationShip(int nodeId);
bool DeleteNodeTemplateId(int nodeId);
bool DeleteTableField(string fieldName, string tableName);
bool Disable(int id, bool disabled);
bool EnableCharge(int id, bool charge);
bool EnableSignin(int id, bool signin);
bool ExistsNodesModelTemplateRelationShip(NodesModelTemplateRelationShipInfo info);
bool ExistsNodesModelTemplateRelationShip(int nodeId);
DataTable GetContentModelListByNodeId(int nodeId, bool enable);
ArrayList GetLookupField(string tableName, string fieldName, int modelId);
int GetMaxId();
ModelInfo GetModelInfoById(int id);
IList<ModelInfo> GetModelList(ModelType modelTyp, ModelShowType showType);
DataTable GetModelListByNodeId(int nodeId, bool enable);
IList<NodesModelTemplateRelationShipInfo> GetNodesModelTemplateList(int nodeId);
NodesModelTemplateRelationShipInfo GetNodesModelTemplateRelationShip(int nodeId, int modelId);
DataTable GetShopModelListByNodeId(int nodeId, bool enable);
IList<int> GetTemplateIdList(int nodeId);
string GetXmlFieldByModelId(int id);
bool ModelIdExists(int nodeId, int modelId);
bool ModelNameExists(string modelName);
bool TableNameExists(string tableName);
bool TemplateIdExists(int nodeId, int templateId);
bool Update(ModelInfo modelInfo);
bool UpdateField(int modelId, string fieldList);
bool UpdateTableField(FieldInfo fieldInfo, string tableName);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -