Пример #1
0
        public static void CreateView(this SQLiteGateWay SQLiteGateWay, string ViewName, string sql, bool replace = false)
        {
            if (SQLiteGateWay.ViewExists(ViewName))
            {
                if (!replace)
                {
                    return;
                }
                SQLiteGateWay.DropView(ViewName);
            }

            SQLiteGateWay.Update($"create view {ViewName} as {sql}");
        }