hawkar ahmad

hawkar ahmad

  • NA
  • 1
  • 773

red red in create db in sqlite for android

Nov 19 2015 4:37 PM
hello,please some help me this error with my new code create db in sqlite

this code called from a button from main


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using System.Data;
using System.IO;
using SQLite;
namespace test_demo.ORM
{
public abstract class DBRepository
{
// string createdb();
 
//*****************************************every thing make red blow my mind 
public string createdb();
{
var output = "";
Output +="create database if it doestont exist";
string dbpath = Path.Combine(Environment.getfolderpath(Environment.specialfolder.personal), "ormdemo.db3");
var db = new SQLiteConnection(dbpath);
Output +="\ndatabsae created...";
return Output;
}